From 7d526891ba39daee486beba700d0565a14e8e542 Mon Sep 17 00:00:00 2001 From: ikeda042 Date: Tue, 2 Jun 2026 22:29:10 +0900 Subject: [PATCH 1/4] feat: add cell position metadata to database and update documentation --- README.md | 2 +- backend/app/cellextraction/README.md | 3 +- backend/app/cellextraction/crud.py | 63 +++++++++++++++++-- backend/app/database_manager/crud.py | 2 + backend/tests/test_objective_scale_support.py | 59 ++++++++++++++++- 5 files changed, 121 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index c07c72d..723d2ef 100644 --- a/README.md +++ b/README.md @@ -233,7 +233,7 @@ images or raw intensity data through the analysis pipeline. | Uploaded ND2 files | `backend/app/nd2files/` | | Cell databases | `backend/app/databases/.db` | | Extracted contour previews | `backend/app/extracted_data//.png` | -| Cell table | SQLite table `cells`, including `cell_id`, `manual_label`, `perimeter`, `area`, `img_ph`, `img_fluo1`, `img_fluo2`, `contour`, center coordinates, objective, and pixel size. | +| Cell table | SQLite table `cells`, including `cell_id`, `manual_label`, `perimeter`, `area`, `img_ph`, `img_fluo1`, `img_fluo2`, `contour`, crop-local center coordinates, original ND2 frame position coordinates, objective, and pixel size. | | Bulk exports | JSON/CSV/PNG responses from Bulk Engine endpoints or browser downloads. | | Frontend production build | `frontend/dist/`; the backend serves this folder when it exists. | diff --git a/backend/app/cellextraction/README.md b/backend/app/cellextraction/README.md index 2c08756..48c850b 100644 --- a/backend/app/cellextraction/README.md +++ b/backend/app/cellextraction/README.md @@ -94,7 +94,8 @@ Failure response: - Databases: SQLite files written to `backend/app/databases/`. - Default name: `.db` with dots in the filename replaced by `p`. - Table: `cells` (stores `cell_id`, `perimeter`, `area`, `img_ph`, `img_fluo1`, - `img_fluo2`, `contour`, `center_x`, `center_y`, and labels). + `img_fluo2`, `contour`, crop-local `center_x`/`center_y`, original ND2 + frame `position_x`/`position_y`, and labels). - Contour overlays: PNGs written to `backend/app/extracted_data//`. - Files are named by frame index, e.g. `0.png`, `1.png`, `2.png`. diff --git a/backend/app/cellextraction/crud.py b/backend/app/cellextraction/crud.py index 9377426..62a1c96 100644 --- a/backend/app/cellextraction/crud.py +++ b/backend/app/cellextraction/crud.py @@ -3,6 +3,7 @@ import pickle import random import re +import json from dataclasses import dataclass from pathlib import Path from typing import Generator, Literal, Optional @@ -30,6 +31,7 @@ DATABASES_DIR: Path = APP_DIR / "databases" EXTRACTED_DATA_DIR: Path = APP_DIR / "extracted_data" TEMPDATA_DIR: Path = APP_DIR / "tempdata" +CELL_POSITIONS_FILENAME: str = "cell_positions.json" def _get_temp_dir(ulid: str) -> str: @@ -239,6 +241,8 @@ class Cell(Base): contour = Column(BLOB) center_x = Column(FLOAT) center_y = Column(FLOAT) + position_x = Column(FLOAT, nullable=True) + position_y = Column(FLOAT, nullable=True) user_id = Column(String, nullable=True) objective_magnification = Column(String, nullable=True) pixel_size_um = Column(FLOAT, nullable=True) @@ -677,9 +681,10 @@ def _ensure_dir(path: str) -> None: cv2.drawContours(image_ph_copy, contours, -1, (0, 255, 0), 3) cv2.imwrite(f"{contour_dir}/{k}.png", image_ph_copy) n = 0 + saved_positions: dict[str, dict[str, float]] = {} if mode in ("triple_layer", "quad_layer"): - for ph, fluo1, fluo2 in zip( - cropped_images_ph, cropped_images_fluo_1, cropped_images_fluo_2 + for candidate_index, (ph, fluo1, fluo2) in enumerate( + zip(cropped_images_ph, cropped_images_fluo_1, cropped_images_fluo_2) ): if ( len(ph) == output_size[0] @@ -696,21 +701,41 @@ def _ensure_dir(path: str) -> None: cv2.imwrite( f"{temp_dir}/frames/tiff_{k}/Cells/fluo2/{n}.png", fluo2 ) + cx, cy = contour_centers[candidate_index] + saved_positions[str(n)] = { + "position_x": float(cx), + "position_y": float(cy), + } n += 1 elif mode == "single_layer": - for ph in cropped_images_ph: + for candidate_index, ph in enumerate(cropped_images_ph): if len(ph) == output_size[0] and len(ph[0]) == output_size[1]: cv2.imwrite(f"{temp_dir}/frames/tiff_{k}/Cells/ph/{n}.png", ph) + cx, cy = contour_centers[candidate_index] + saved_positions[str(n)] = { + "position_x": float(cx), + "position_y": float(cy), + } n += 1 elif mode == "dual_layer": - for ph, fluo1 in zip(cropped_images_ph, cropped_images_fluo_1): + for candidate_index, (ph, fluo1) in enumerate( + zip(cropped_images_ph, cropped_images_fluo_1) + ): if len(ph) == output_size[0] and len(ph[0]) == output_size[1]: cv2.imwrite(f"{temp_dir}/frames/tiff_{k}/Cells/ph/{n}.png", ph) cv2.imwrite( f"{temp_dir}/frames/tiff_{k}/Cells/fluo1/{n}.png", fluo1 ) + cx, cy = contour_centers[candidate_index] + saved_positions[str(n)] = { + "position_x": float(cx), + "position_y": float(cy), + } n += 1 + positions_path = Path(frame_dir) / "Cells" / CELL_POSITIONS_FILENAME + with positions_path.open("w", encoding="utf-8") as handle: + json.dump(saved_positions, handle, ensure_ascii=True, indent=2) return num_tiff @@ -785,6 +810,33 @@ def process_image( contour = contours[0] if contours else None return contour, img_ph_gray, img_fluo1_gray, img_fluo2_gray + def get_cell_original_position( + self, + i: int, + j: int, + ) -> tuple[float | None, float | None]: + positions_path = ( + Path(self.temp_dir) + / "frames" + / f"tiff_{i}" + / "Cells" + / CELL_POSITIONS_FILENAME + ) + try: + with positions_path.open("r", encoding="utf-8") as handle: + positions = json.load(handle) + except (FileNotFoundError, json.JSONDecodeError, TypeError): + return None, None + + entry = positions.get(str(j)) if isinstance(positions, dict) else None + if not isinstance(entry, dict): + return None, None + + try: + return float(entry["position_x"]), float(entry["position_y"]) + except (KeyError, TypeError, ValueError): + return None, None + def process_cell( self, i: int, @@ -813,6 +865,7 @@ def process_cell( or abs(center_y - img_ph.shape[0] // 2) >= 3 ): return None + position_x, position_y = self.get_cell_original_position(i, j) img_ph_data = cv2.imencode(".png", img_ph_gray)[1].tobytes() img_fluo1_data = img_fluo2_data = None @@ -844,6 +897,8 @@ def process_cell( contour=contour_blob, center_x=center_x, center_y=center_y, + position_x=position_x, + position_y=position_y, user_id=user_id, objective_magnification=self.objective_magnification, pixel_size_um=self.pixel_size_um, diff --git a/backend/app/database_manager/crud.py b/backend/app/database_manager/crud.py index 6506607..40ef11c 100644 --- a/backend/app/database_manager/crud.py +++ b/backend/app/database_manager/crud.py @@ -87,6 +87,8 @@ class Cell(Base): contour = Column(BLOB) center_x = Column(FLOAT) center_y = Column(FLOAT) + position_x = Column(FLOAT, nullable=True) + position_y = Column(FLOAT, nullable=True) user_id = Column(String, nullable=True) objective_magnification = Column(String, nullable=True) pixel_size_um = Column(FLOAT, nullable=True) diff --git a/backend/tests/test_objective_scale_support.py b/backend/tests/test_objective_scale_support.py index a26642a..d07d1a5 100644 --- a/backend/tests/test_objective_scale_support.py +++ b/backend/tests/test_objective_scale_support.py @@ -4,14 +4,21 @@ import tempfile import unittest import pickle +import shutil from pathlib import Path from uuid import uuid4 +import cv2 import numpy as np from app.bulk_engine.crud import _calc_cell_length_um from app.bulk_engine.heatmap_bulk_core import build_heatmap_vectors_csv -from app.cellextraction.crud import create_database +from app.cellextraction.crud import ( + ExtractionCrudBase, + SyncChores, + _get_temp_dir, + create_database, +) from app.database_manager.crud import ( DATABASES_DIR, _scale_bar_length_px, @@ -42,13 +49,18 @@ def test_migration_adds_objective_columns_and_backfills_100x(self): for row in conn.execute("PRAGMA table_info(cells)").fetchall() } row = conn.execute( - "SELECT objective_magnification, pixel_size_um FROM cells" + "SELECT objective_magnification, pixel_size_um, position_x, position_y " + "FROM cells" ).fetchone() self.assertIn("objective_magnification", columns) self.assertIn("pixel_size_um", columns) + self.assertIn("position_x", columns) + self.assertIn("position_y", columns) self.assertEqual(row[0], "100x") self.assertAlmostEqual(float(row[1]), 0.065) + self.assertIsNone(row[2]) + self.assertIsNone(row[3]) def test_new_database_schema_includes_objective_columns(self): with tempfile.TemporaryDirectory() as tmpdir: @@ -64,6 +76,49 @@ def test_new_database_schema_includes_objective_columns(self): self.assertIn("objective_magnification", columns) self.assertIn("pixel_size_um", columns) + self.assertIn("position_x", columns) + self.assertIn("position_y", columns) + + def test_extracted_cell_records_original_nd2_position(self): + ulid = f"position-test-{uuid4().hex}" + temp_dir = Path(_get_temp_dir(ulid)) + with tempfile.TemporaryDirectory() as contour_tmp: + try: + ph_dir = temp_dir / "PH" + ph_dir.mkdir(parents=True, exist_ok=True) + image = np.zeros((2048, 2048), dtype=np.uint8) + cv2.rectangle(image, (670, 770), (731, 831), 255, -1) + self.assertTrue(cv2.imwrite(str(ph_dir / "0.tif"), image)) + + SyncChores.init( + "position-test.nd2", + 1, + ulid, + param1=130, + image_size=200, + mode="single_layer", + contour_dir=str(Path(contour_tmp) / "contours"), + ) + + extractor = ExtractionCrudBase( + nd2_path="position-test.nd2", + mode="single_layer", + param1=130, + image_size=200, + ) + extractor.ulid = ulid + extractor.temp_dir = str(temp_dir) + + cell = extractor.process_cell(0, 0) + finally: + shutil.rmtree(temp_dir, ignore_errors=True) + + self.assertIsNotNone(cell) + assert cell is not None + self.assertAlmostEqual(float(cell.position_x), 700.0) + self.assertAlmostEqual(float(cell.position_y), 800.0) + self.assertAlmostEqual(float(cell.center_x), 100.0, delta=2.0) + self.assertAlmostEqual(float(cell.center_y), 100.0, delta=2.0) def test_cell_length_uses_supplied_pixel_size_um(self): contour = np.array([[[0, 0]], [[10, 0]]], dtype=np.int32) From 3b177b5e20d031c05c6de4ab878cc9fdabc43f62 Mon Sep 17 00:00:00 2001 From: ikeda042 Date: Tue, 2 Jun 2026 22:30:22 +0900 Subject: [PATCH 2/4] added position to test_database --- backend/app/databases/test_database.db | Bin 7942144 -> 7950336 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/backend/app/databases/test_database.db b/backend/app/databases/test_database.db index 997ead8f496ddf257268a03b3d8abb0c1d997f03..45807e89055149def6fae94ca1c567e301834d23 100644 GIT binary patch delta 61542 zcmZ^r30zFy|NrkS)s&V|)2cG9O53#9Ly8nhvXfL2B_w;6x+8mN(`F~xiDWDxWJx8< z$C5SsPK!PCf4yhQ$EV--@9`Lq$9;D0x#zu}_c`azBve1+C2W4qOK#KpBg3ey#m9|J#}GLCC6Y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k|O6$ltC;o5oMae2UivI>qSZ5`m%iZ>3-K_Zp3ISVwu2lFX{)+e| zN+EuUQi)%pmQ?Pr21AY;sV&OXApXVzKH`^HP9%O8!M6!MEBKP(v*yaaTsMzwHh zJL8bPI(O^Kb=ur_gC_Fat${OzxnEYSlIQBL6P4zEez}gxwLE7i%%yd$Q|EH#iwe^S zwuEpkw6&C`C&K?ENC1MsCqWW7KQ&>tKnnM(oAqq&|J8K;u~5cg{C#h6cXrN^oF6$_ z3)8YAjYNsYU4En=#7rS0b4>YN$=%_&lB^wH39VYDmDa4fWf9FL%^8`t#_>*1wyZ3#+U#0St7x^%y3iVaP@8tmG%K!}kLyoLw89yUn zwn|D%UQa6y5dE~uo~|S9)2aenJgXjnouL+)w6~p<()py@tneiAXoW%e4aNf*fidHNaYSHTIiRCx!~TMt z4#4fx0JwiDiEXu%l6aM~gt%HK2uQriMnd#6DtEF2W{ahh$o`#jsW1^Xy$DDo?J*8g z;u@uLq~pou-#n@HaWGc{jsbLJAmNak5M9Q;tS6bXsv{@yYZ#!G{y`HVf z;@oWY)6B+F_jrt(@RS>IcQQ)7NEVLUCkP2+q^Os{-@D43Cjxudp_Nbw;SjK`{>Y+hanexkZE@#d7qpZe{MG~&zg(M> zEgv=aTU9|#U<>D!LAi*Y{F4*yKgNR!62}&ns|`xU7WZv+{Y{6xK_ND<)u~Pv(L3%x zdVjcLt>^)$BF0SFMVfj2VyVsx^SBw|th6#mfio};{SUEfw@?58 From 8fc62e1cb4ec686f7df8b348971b4e25dc35e0d5 Mon Sep 17 00:00:00 2001 From: ikeda042 Date: Wed, 3 Jun 2026 10:39:26 +0900 Subject: [PATCH 3/4] feat: add Raw Position page and integrate with DatabasesPage - Updated index.html to reference new JavaScript file for Raw Position page. - Modified main.tsx to include route for Raw Position page. - Enhanced DatabasesPage with a new button to navigate to Raw Position page. - Created RawPositionPage component to display cell position data with settings for frame selection and view mode. - Implemented fetching and displaying of position frames and their data. - Added UI elements for frame navigation and settings using Chakra UI components. --- backend/app/cellextraction/crud.py | 1 + backend/app/database_manager/crud.py | 257 +++++++ backend/app/database_manager/router.py | 36 + backend/tests/test_objective_scale_support.py | 213 ++++++ frontend/dist/assets/index-CxRkM7zP.js | 28 + frontend/dist/index.html | 2 +- frontend/src/main.tsx | 2 + frontend/src/pages/DatabasesPage.tsx | 32 +- frontend/src/pages/RawPositionPage.tsx | 650 ++++++++++++++++++ 9 files changed, 1212 insertions(+), 9 deletions(-) create mode 100644 frontend/dist/assets/index-CxRkM7zP.js create mode 100644 frontend/src/pages/RawPositionPage.tsx diff --git a/backend/app/cellextraction/crud.py b/backend/app/cellextraction/crud.py index 62a1c96..1e8f417 100644 --- a/backend/app/cellextraction/crud.py +++ b/backend/app/cellextraction/crud.py @@ -622,6 +622,7 @@ def _ensure_dir(path: str) -> None: _ensure_dir(path) loop_num = num_tiff // set_num if mode != "single_layer" else num_tiff for k in range(loop_num): + frame_dir = f"{temp_dir}/frames/tiff_{k}" image_ph_raw = SyncChores.load_image_unchanged(f"{temp_dir}/PH/{k}.tif") if image_ph_raw is None: continue diff --git a/backend/app/database_manager/crud.py b/backend/app/database_manager/crud.py index 40ef11c..356fa5d 100644 --- a/backend/app/database_manager/crud.py +++ b/backend/app/database_manager/crud.py @@ -1,3 +1,4 @@ +import base64 import io import json from pathlib import Path @@ -560,6 +561,243 @@ def get_manual_labels(db_name: str) -> list[str]: session.close() +def _parse_frame_index(cell_id: object) -> int | None: + value = str(cell_id or "").strip() + upper = value.upper() + if not upper.startswith("F"): + return None + cell_marker = upper.find("C", 1) + if cell_marker <= 1: + return None + frame_part = upper[1:cell_marker] + if not frame_part.isdigit(): + return None + return int(frame_part) + + +def _contour_points_from_blob(contour_raw: bytes) -> np.ndarray | None: + try: + contour = pickle.loads(contour_raw) + except Exception: + return None + contour_array = np.asarray(contour) + if contour_array.ndim == 3 and contour_array.shape[1] == 1: + contour_array = contour_array[:, 0, :] + if contour_array.ndim != 2 or contour_array.shape[1] != 2: + return None + return contour_array.astype(float) + + +def _image_size_from_blob(image_raw: bytes | None) -> tuple[float, float] | None: + if image_raw is None: + return None + image = cv2.imdecode(np.frombuffer(bytes(image_raw), np.uint8), cv2.IMREAD_UNCHANGED) + if image is None or image.ndim < 2: + return None + return float(image.shape[1]), float(image.shape[0]) + + +def _empty_position_bounds() -> dict[str, float | None]: + return {"min_x": None, "min_y": None, "max_x": None, "max_y": None} + + +def _bounds_payload(bounds: list[float] | None) -> dict[str, float | None]: + if bounds is None: + return _empty_position_bounds() + return { + "min_x": float(bounds[0]), + "min_y": float(bounds[1]), + "max_x": float(bounds[2]), + "max_y": float(bounds[3]), + } + + +def _expand_bounds(bounds: list[float] | None, points: np.ndarray) -> list[float]: + min_x = float(np.min(points[:, 0])) + min_y = float(np.min(points[:, 1])) + max_x = float(np.max(points[:, 0])) + max_y = float(np.max(points[:, 1])) + if bounds is None: + return [min_x, min_y, max_x, max_y] + bounds[0] = min(bounds[0], min_x) + bounds[1] = min(bounds[1], min_y) + bounds[2] = max(bounds[2], max_x) + bounds[3] = max(bounds[3], max_y) + return bounds + + +def _masked_jet_data_url( + image_raw: bytes | None, + contour_points: np.ndarray, +) -> str | None: + if image_raw is None: + return None + image = cv2.imdecode(np.frombuffer(bytes(image_raw), np.uint8), cv2.IMREAD_UNCHANGED) + if image is None or image.ndim < 2: + return None + + gray = _as_grayscale(image) + mask = np.zeros(gray.shape[:2], dtype=np.uint8) + contour_int = np.rint(contour_points).astype(np.int32) + if contour_int.size == 0: + return None + cv2.fillPoly(mask, [contour_int], 255) + inside = mask > 0 + if not np.any(inside): + return None + + values = gray.astype(np.float32, copy=False) + inside_values = values[inside] + min_val = float(np.min(inside_values)) + max_val = float(np.max(inside_values)) + if max_val <= min_val: + normalized = np.zeros(gray.shape[:2], dtype=np.uint8) + else: + normalized = np.zeros(gray.shape[:2], dtype=np.uint8) + normalized_values = (inside_values - min_val) / (max_val - min_val) * 255.0 + normalized[inside] = np.clip(normalized_values, 0, 255).astype(np.uint8) + + jet_bgr = cv2.applyColorMap(normalized, cv2.COLORMAP_JET) + alpha = np.where(inside, 255, 0).astype(np.uint8) + bgra = np.dstack((jet_bgr, alpha)) + success, buffer = cv2.imencode(".png", bgra) + if not success: + return None + encoded = base64.b64encode(buffer.tobytes()).decode("ascii") + return f"data:image/png;base64,{encoded}" + + +def get_cell_position_frames(db_name: str) -> dict: + session = get_database_session(db_name) + try: + cells = get_cells_table(session) + stmt = ( + select(cells.c.cell_id, cells.c.position_x, cells.c.position_y) + .where(cells.c.cell_id.is_not(None)) + .order_by(cells.c.cell_id) + ) + frame_map: dict[int, dict[str, int]] = {} + for cell_id, position_x, position_y in session.execute(stmt).fetchall(): + frame = _parse_frame_index(cell_id) + if frame is None: + continue + entry = frame_map.setdefault( + frame, + {"frame": frame, "cell_count": 0, "positioned_count": 0}, + ) + entry["cell_count"] += 1 + if position_x is not None and position_y is not None: + entry["positioned_count"] += 1 + return { + "dbname": db_name, + "frames": [frame_map[key] for key in sorted(frame_map)], + } + finally: + session.close() + + +def get_cell_position_frame( + db_name: str, + frame: int, + fluorescence_channel: Literal["fluo1", "fluo2"] = "fluo1", + include_fluorescence: bool = True, +) -> dict: + session = get_database_session(db_name) + try: + cells = get_cells_table(session) + fluo_column = ( + cells.c.img_fluo2 + if fluorescence_channel == "fluo2" + else cells.c.img_fluo1 + ) + stmt = ( + select( + cells.c.cell_id, + cells.c.position_x, + cells.c.position_y, + cells.c.contour, + cells.c.img_ph, + fluo_column, + cells.c.manual_label, + ) + .where(cells.c.cell_id.is_not(None)) + .order_by(cells.c.cell_id) + ) + plotted_cells: list[dict] = [] + total_cells = 0 + missing_position_count = 0 + invalid_contour_count = 0 + bounds: list[float] | None = None + + for ( + cell_id, + position_x, + position_y, + contour_raw, + image_raw, + fluorescence_raw, + manual_label, + ) in session.execute(stmt).fetchall(): + parsed_frame = _parse_frame_index(cell_id) + if parsed_frame != frame: + continue + total_cells += 1 + if position_x is None or position_y is None: + missing_position_count += 1 + continue + if contour_raw is None: + invalid_contour_count += 1 + continue + contour_points = _contour_points_from_blob(bytes(contour_raw)) + if contour_points is None or contour_points.size == 0: + invalid_contour_count += 1 + continue + crop_size = _image_size_from_blob(bytes(image_raw) if image_raw else None) + if crop_size is None: + crop_width = float(np.max(contour_points[:, 0]) + 1) + crop_height = float(np.max(contour_points[:, 1]) + 1) + else: + crop_width, crop_height = crop_size + + original_x = float(position_x) + original_y = float(position_y) + translated = contour_points.copy() + translated[:, 0] += original_x - crop_width / 2 + translated[:, 1] += original_y - crop_height / 2 + bounds = _expand_bounds(bounds, translated) + payload = { + "cell_id": str(cell_id), + "position_x": original_x, + "position_y": original_y, + "manual_label": None if manual_label is None else str(manual_label), + "contour": translated.round(3).tolist(), + "image_x": original_x - crop_width / 2, + "image_y": original_y - crop_height / 2, + "image_width": crop_width, + "image_height": crop_height, + } + if include_fluorescence: + payload["jet_image"] = _masked_jet_data_url( + bytes(fluorescence_raw) if fluorescence_raw else None, + contour_points, + ) + plotted_cells.append(payload) + + return { + "dbname": db_name, + "frame": frame, + "cell_count": total_cells, + "positioned_count": len(plotted_cells), + "missing_position_count": missing_position_count, + "invalid_contour_count": invalid_contour_count, + "bounds": _bounds_payload(bounds), + "fluorescence_channel": fluorescence_channel, + "cells": plotted_cells, + } + finally: + session.close() + + def _decode_image(image_data: bytes) -> np.ndarray: img = cv2.imdecode(np.frombuffer(image_data, np.uint8), cv2.IMREAD_UNCHANGED) if img is None: @@ -2652,6 +2890,25 @@ def get_cell_ids_by_label(cls, db_name: str, label: str) -> list[str]: def get_manual_labels(cls, db_name: str) -> list[str]: return get_manual_labels(db_name) + @classmethod + def get_cell_position_frames(cls, db_name: str) -> dict: + return get_cell_position_frames(db_name) + + @classmethod + def get_cell_position_frame( + cls, + db_name: str, + frame: int, + fluorescence_channel: Literal["fluo1", "fluo2"] = "fluo1", + include_fluorescence: bool = True, + ) -> dict: + return get_cell_position_frame( + db_name, + frame, + fluorescence_channel=fluorescence_channel, + include_fluorescence=include_fluorescence, + ) + @classmethod def build_map256_normalized( cls, diff --git a/backend/app/database_manager/router.py b/backend/app/database_manager/router.py index 02a99cc..5fffcce 100644 --- a/backend/app/database_manager/router.py +++ b/backend/app/database_manager/router.py @@ -171,6 +171,42 @@ def get_manual_labels_endpoint( raise HTTPException(status_code=500, detail=str(exc)) +@router_database_manager.get("/get-cell-position-frames") +def get_cell_position_frames_endpoint( + dbname: Annotated[str, Query()] = ..., +) -> dict: + try: + return DatabaseManagerCrud.get_cell_position_frames(dbname) + except FileNotFoundError: + raise HTTPException(status_code=404, detail="Database not found") + except ValueError as exc: + raise HTTPException(status_code=400, detail=str(exc)) + except Exception as exc: + raise HTTPException(status_code=500, detail=str(exc)) + + +@router_database_manager.get("/get-cell-position-frame") +def get_cell_position_frame_endpoint( + dbname: Annotated[str, Query()] = ..., + frame: Annotated[int, Query(ge=0)] = ..., + fluorescence_channel: Annotated[Literal["fluo1", "fluo2"], Query()] = "fluo1", + include_fluorescence: Annotated[bool, Query()] = True, +) -> dict: + try: + return DatabaseManagerCrud.get_cell_position_frame( + dbname, + frame, + fluorescence_channel=fluorescence_channel, + include_fluorescence=include_fluorescence, + ) + except FileNotFoundError: + raise HTTPException(status_code=404, detail="Database not found") + except ValueError as exc: + raise HTTPException(status_code=400, detail=str(exc)) + except Exception as exc: + raise HTTPException(status_code=500, detail=str(exc)) + + @router_database_manager.get("/get-cell-contour") def get_cell_contour_endpoint( dbname: Annotated[str, Query()] = ..., diff --git a/backend/tests/test_objective_scale_support.py b/backend/tests/test_objective_scale_support.py index d07d1a5..ef87c34 100644 --- a/backend/tests/test_objective_scale_support.py +++ b/backend/tests/test_objective_scale_support.py @@ -1,9 +1,11 @@ from __future__ import annotations +import base64 import sqlite3 import tempfile import unittest import pickle +import json import shutil from pathlib import Path from uuid import uuid4 @@ -22,6 +24,8 @@ from app.database_manager.crud import ( DATABASES_DIR, _scale_bar_length_px, + get_cell_position_frame, + get_cell_position_frames, migrate_database, ) from app.graphengine.crud import GraphEngineCrud @@ -120,6 +124,215 @@ def test_extracted_cell_records_original_nd2_position(self): self.assertAlmostEqual(float(cell.center_x), 100.0, delta=2.0) self.assertAlmostEqual(float(cell.center_y), 100.0, delta=2.0) + def test_init_writes_cell_positions_to_each_frame_directory(self): + ulid = f"position-test-{uuid4().hex}" + temp_dir = Path(_get_temp_dir(ulid)) + with tempfile.TemporaryDirectory() as contour_tmp: + try: + ph_dir = temp_dir / "PH" + ph_dir.mkdir(parents=True, exist_ok=True) + first = np.zeros((2048, 2048), dtype=np.uint8) + second = np.zeros((2048, 2048), dtype=np.uint8) + cv2.rectangle(first, (670, 770), (731, 831), 255, -1) + cv2.rectangle(second, (870, 970), (931, 1031), 255, -1) + self.assertTrue(cv2.imwrite(str(ph_dir / "0.tif"), first)) + self.assertTrue(cv2.imwrite(str(ph_dir / "1.tif"), second)) + + SyncChores.init( + "position-test.nd2", + 2, + ulid, + param1=130, + image_size=200, + mode="single_layer", + contour_dir=str(Path(contour_tmp) / "contours"), + ) + + with (temp_dir / "frames" / "tiff_0" / "Cells" / "cell_positions.json").open( + "r", + encoding="utf-8", + ) as handle: + first_positions = json.load(handle) + with (temp_dir / "frames" / "tiff_1" / "Cells" / "cell_positions.json").open( + "r", + encoding="utf-8", + ) as handle: + second_positions = json.load(handle) + finally: + shutil.rmtree(temp_dir, ignore_errors=True) + + self.assertAlmostEqual(first_positions["0"]["position_x"], 700.0) + self.assertAlmostEqual(first_positions["0"]["position_y"], 800.0) + self.assertAlmostEqual(second_positions["0"]["position_x"], 900.0) + self.assertAlmostEqual(second_positions["0"]["position_y"], 1000.0) + + def test_cell_position_frame_translates_crop_contours_to_nd2_coordinates(self): + db_name = f"objective-scale-test-{uuid4().hex}.db" + db_path = DATABASES_DIR / db_name + contour = np.array( + [[[90, 95]], [[110, 95]], [[110, 105]], [[90, 105]]], + dtype=np.int32, + ) + image = np.zeros((200, 200), dtype=np.uint8) + success, buffer = cv2.imencode(".png", image) + self.assertTrue(success) + + engine = create_database(str(db_path)) + engine.dispose() + with sqlite3.connect(db_path) as conn: + conn.execute( + """ + INSERT INTO cells ( + cell_id, + manual_label, + img_ph, + contour, + position_x, + position_y + ) + VALUES (?, ?, ?, ?, ?, ?) + """, + ( + "F3C0", + 1, + buffer.tobytes(), + pickle.dumps(contour), + 700.0, + 800.0, + ), + ) + + frames = get_cell_position_frames(db_name) + frame_data = get_cell_position_frame(db_name, 3) + + self.assertEqual( + frames["frames"], + [{"frame": 3, "cell_count": 1, "positioned_count": 1}], + ) + self.assertEqual(frame_data["cell_count"], 1) + self.assertEqual(frame_data["positioned_count"], 1) + self.assertEqual(frame_data["cells"][0]["cell_id"], "F3C0") + self.assertEqual(frame_data["cells"][0]["contour"][0], [690.0, 795.0]) + self.assertEqual( + frame_data["bounds"], + {"min_x": 690.0, "min_y": 795.0, "max_x": 710.0, "max_y": 805.0}, + ) + + def test_cell_position_frame_can_include_jet_fluorescence_overlay(self): + db_name = f"objective-scale-test-{uuid4().hex}.db" + db_path = DATABASES_DIR / db_name + contour = np.array( + [[[90, 95]], [[110, 95]], [[110, 105]], [[90, 105]]], + dtype=np.int32, + ) + image = np.zeros((200, 200), dtype=np.uint8) + fluo = np.zeros((200, 200), dtype=np.uint16) + fluo[95:106, 90:111] = np.linspace(100, 4000, 11 * 21).reshape(11, 21) + image_success, image_buffer = cv2.imencode(".png", image) + fluo_success, fluo_buffer = cv2.imencode(".png", fluo) + self.assertTrue(image_success) + self.assertTrue(fluo_success) + + engine = create_database(str(db_path)) + engine.dispose() + with sqlite3.connect(db_path) as conn: + conn.execute( + """ + INSERT INTO cells ( + cell_id, + manual_label, + img_ph, + img_fluo1, + contour, + position_x, + position_y + ) + VALUES (?, ?, ?, ?, ?, ?, ?) + """, + ( + "F3C0", + 1, + image_buffer.tobytes(), + fluo_buffer.tobytes(), + pickle.dumps(contour), + 700.0, + 800.0, + ), + ) + + frame_data = get_cell_position_frame( + db_name, + 3, + fluorescence_channel="fluo1", + include_fluorescence=True, + ) + cell = frame_data["cells"][0] + jet_image = cell["jet_image"] + self.assertTrue(jet_image.startswith("data:image/png;base64,")) + decoded = cv2.imdecode( + np.frombuffer( + base64.b64decode(jet_image.split(",", 1)[1]), + np.uint8, + ), + cv2.IMREAD_UNCHANGED, + ) + + self.assertEqual(decoded.shape, (200, 200, 4)) + self.assertEqual(cell["image_x"], 600.0) + self.assertEqual(cell["image_y"], 700.0) + self.assertEqual(cell["image_width"], 200.0) + self.assertEqual(cell["image_height"], 200.0) + self.assertEqual(int(decoded[0, 0, 3]), 0) + self.assertEqual(int(decoded[100, 100, 3]), 255) + + def test_cell_position_frames_follow_cell_id_frame_numbers(self): + db_name = f"objective-scale-test-{uuid4().hex}.db" + db_path = DATABASES_DIR / db_name + contour = np.array( + [[[90, 95]], [[110, 95]], [[110, 105]], [[90, 105]]], + dtype=np.int32, + ) + image = np.zeros((200, 200), dtype=np.uint8) + success, buffer = cv2.imencode(".png", image) + self.assertTrue(success) + + engine = create_database(str(db_path)) + engine.dispose() + with sqlite3.connect(db_path) as conn: + conn.executemany( + """ + INSERT INTO cells ( + cell_id, + img_ph, + contour, + position_x, + position_y + ) + VALUES (?, ?, ?, ?, ?) + """, + [ + ("F10C0", buffer.tobytes(), pickle.dumps(contour), 700.0, 800.0), + ("F2C0", buffer.tobytes(), pickle.dumps(contour), None, None), + ("not-a-frame", buffer.tobytes(), pickle.dumps(contour), 1.0, 2.0), + ], + ) + + frames = get_cell_position_frames(db_name) + frame_data = get_cell_position_frame(db_name, 2) + + self.assertEqual( + frames["frames"], + [ + {"frame": 2, "cell_count": 1, "positioned_count": 0}, + {"frame": 10, "cell_count": 1, "positioned_count": 1}, + ], + ) + self.assertEqual(frame_data["frame"], 2) + self.assertEqual(frame_data["cell_count"], 1) + self.assertEqual(frame_data["positioned_count"], 0) + self.assertEqual(frame_data["missing_position_count"], 1) + self.assertEqual(frame_data["cells"], []) + def test_cell_length_uses_supplied_pixel_size_um(self): contour = np.array([[[0, 0]], [[10, 0]]], dtype=np.int32) contour_blob = pickle.dumps(contour) diff --git a/frontend/dist/assets/index-CxRkM7zP.js b/frontend/dist/assets/index-CxRkM7zP.js new file mode 100644 index 0000000..2857213 --- /dev/null +++ b/frontend/dist/assets/index-CxRkM7zP.js @@ -0,0 +1,28 @@ +function YR(e,t){for(var a=0;ai[l]})}}}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 l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function a(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(l){if(l.ep)return;l.ep=!0;const c=a(l);fetch(l.href,c)}})();function XR(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mp={exports:{}},Jc={};var zy;function KR(){if(zy)return Jc;zy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(i,l,c){var d=null;if(c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),"key"in l){c={};for(var h in l)h!=="key"&&(c[h]=l[h])}else c=l;return l=c.ref,{$$typeof:e,type:i,key:d,ref:l!==void 0?l:null,props:c}}return Jc.Fragment=t,Jc.jsx=a,Jc.jsxs=a,Jc}var _y;function ZR(){return _y||(_y=1,Mp.exports=KR()),Mp.exports}var u=ZR(),Dp={exports:{}},Ze={};var Ay;function QR(){if(Ay)return Ze;Ay=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),S=Symbol.iterator;function C(k){return k===null||typeof k!="object"?null:(k=S&&k[S]||k["@@iterator"],typeof k=="function"?k:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,T={};function A(k,L,G){this.props=k,this.context=L,this.refs=T,this.updater=G||O}A.prototype.isReactComponent={},A.prototype.setState=function(k,L){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,L,"setState")},A.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function _(){}_.prototype=A.prototype;function I(k,L,G){this.props=k,this.context=L,this.refs=T,this.updater=G||O}var M=I.prototype=new _;M.constructor=I,w(M,A.prototype),M.isPureReactComponent=!0;var R=Array.isArray;function V(){}var P={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function B(k,L,G){var X=G.ref;return{$$typeof:e,type:k,key:L,ref:X!==void 0?X:null,props:G}}function W(k,L){return B(k.type,L,k.props)}function Y(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function U(k){var L={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(G){return L[G]})}var be=/\/+/g;function de(k,L){return typeof k=="object"&&k!==null&&k.key!=null?U(""+k.key):L.toString(36)}function ve(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(V,V):(k.status="pending",k.then(function(L){k.status==="pending"&&(k.status="fulfilled",k.value=L)},function(L){k.status==="pending"&&(k.status="rejected",k.reason=L)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function N(k,L,G,X,xe){var ae=typeof k;(ae==="undefined"||ae==="boolean")&&(k=null);var ge=!1;if(k===null)ge=!0;else switch(ae){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(k.$$typeof){case e:case t:ge=!0;break;case v:return ge=k._init,N(ge(k._payload),L,G,X,xe)}}if(ge)return xe=xe(k),ge=X===""?"."+de(k,0):X,R(xe)?(G="",ge!=null&&(G=ge.replace(be,"$&/")+"/"),N(xe,L,G,"",function(Te){return Te})):xe!=null&&(Y(xe)&&(xe=W(xe,G+(xe.key==null||k&&k.key===xe.key?"":(""+xe.key).replace(be,"$&/")+"/")+ge)),L.push(xe)),1;ge=0;var ee=X===""?".":X+":";if(R(k))for(var ne=0;ne>>1,Ee=N[le];if(0>>1;lel(G,oe))Xl(xe,G)?(N[le]=xe,N[X]=oe,le=X):(N[le]=G,N[L]=oe,le=L);else if(Xl(xe,oe))N[le]=xe,N[X]=oe,le=X;else break e}}return te}function l(N,te){var oe=N.sortIndex-te.sortIndex;return oe!==0?oe:N.id-te.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();e.unstable_now=function(){return d.now()-h}}var p=[],b=[],v=1,x=null,S=3,C=!1,O=!1,w=!1,T=!1,A=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;function M(N){for(var te=a(b);te!==null;){if(te.callback===null)i(b);else if(te.startTime<=N)i(b),te.sortIndex=te.expirationTime,t(p,te);else break;te=a(b)}}function R(N){if(w=!1,M(N),!O)if(a(p)!==null)O=!0,V||(V=!0,U());else{var te=a(b);te!==null&&ve(R,te.startTime-N)}}var V=!1,P=-1,F=5,B=-1;function W(){return T?!0:!(e.unstable_now()-BN&&W());){var le=x.callback;if(typeof le=="function"){x.callback=null,S=x.priorityLevel;var Ee=le(x.expirationTime<=N);if(N=e.unstable_now(),typeof Ee=="function"){x.callback=Ee,M(N),te=!0;break t}x===a(p)&&i(p),M(N)}else i(p);x=a(p)}if(x!==null)te=!0;else{var k=a(b);k!==null&&ve(R,k.startTime-N),te=!1}}break e}finally{x=null,S=oe,C=!1}te=void 0}}finally{te?U():V=!1}}}var U;if(typeof I=="function")U=function(){I(Y)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,de=be.port2;be.port1.onmessage=Y,U=function(){de.postMessage(null)}}else U=function(){A(Y,0)};function ve(N,te){P=A(function(){N(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_forceFrameRate=function(N){0>N||125le?(N.sortIndex=oe,t(b,N),a(p)===null&&N===a(b)&&(w?(_(P),P=-1):w=!0,ve(R,oe-le))):(N.sortIndex=Ee,t(p,N),O||C||(O=!0,V||(V=!0,U()))),N},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(N){var te=S;return function(){var oe=S;S=te;try{return N.apply(this,arguments)}finally{S=oe}}}})($p)),$p}var Ly;function tO(){return Ly||(Ly=1,Up.exports=eO()),Up.exports}var Hp={exports:{}},ha={};var My;function nO(){if(My)return ha;My=1;var e=c0();function t(p){var b="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Hp.exports=nO(),Hp.exports}var Py;function aO(){if(Py)return eu;Py=1;var e=tO(),t=c0(),a=bC();function i(n){var r="https://react.dev/errors/"+n;if(1Ee||(n.current=le[Ee],le[Ee]=null,Ee--)}function G(n,r){Ee++,le[Ee]=n.current,n.current=r}var X=k(null),xe=k(null),ae=k(null),ge=k(null);function ee(n,r){switch(G(ae,r),G(xe,n),G(X,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?Jx(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=Jx(r),n=ey(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}L(X),G(X,n)}function ne(){L(X),L(xe),L(ae)}function Te(n){n.memoizedState!==null&&G(ge,n);var r=X.current,o=ey(r,n.type);r!==o&&(G(xe,n),G(X,o))}function se(n){xe.current===n&&(L(X),L(xe)),ge.current===n&&(L(ge),Xc._currentValue=oe)}var ye,ke;function Xe(n){if(ye===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);ye=r&&r[1]||"",ke=-1)":-1f||D[s]!==Q[f]){var ce=` +`+D[s].replace(" at new "," at ");return n.displayName&&ce.includes("")&&(ce=ce.replace("",n.displayName)),ce}while(1<=s&&0<=f);break}}}finally{pe=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?Xe(o):""}function qe(n,r){switch(n.tag){case 26:case 27:case 5:return Xe(n.type);case 16:return Xe("Lazy");case 13:return n.child!==r&&r!==null?Xe("Suspense Fallback"):Xe("Suspense");case 19:return Xe("SuspenseList");case 0:case 15:return _e(n.type,!1);case 11:return _e(n.type.render,!1);case 1:return _e(n.type,!0);case 31:return Xe("Activity");default:return""}}function Ke(n){try{var r="",o=null;do r+=qe(n,o),o=n,n=n.return;while(n);return r}catch(s){return` +Error generating stack: `+s.message+` +`+s.stack}}var jt=Object.prototype.hasOwnProperty,ft=e.unstable_scheduleCallback,tt=e.unstable_cancelCallback,on=e.unstable_shouldYield,ma=e.unstable_requestPaint,$t=e.unstable_now,fn=e.unstable_getCurrentPriorityLevel,Hr=e.unstable_ImmediatePriority,di=e.unstable_UserBlockingPriority,Wn=e.unstable_NormalPriority,Ga=e.unstable_LowPriority,qa=e.unstable_IdlePriority,Ya=e.log,ja=e.unstable_setDisableYieldValue,Ie=null,We=null;function nt(n){if(typeof Ya=="function"&&ja(n),We&&typeof We.setStrictMode=="function")try{We.setStrictMode(Ie,n)}catch{}}var rt=Math.clz32?Math.clz32:mr,pt=Math.log,oa=Math.LN2;function mr(n){return n>>>=0,n===0?32:31-(pt(n)/oa|0)|0}var ba=256,br=262144,yn=4194304;function hn(n){var r=n&42;if(r!==0)return r;switch(n&-n){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function bt(n,r,o){var s=n.pendingLanes;if(s===0)return 0;var f=0,g=n.suspendedLanes,y=n.pingedLanes;n=n.warmLanes;var E=s&134217727;return E!==0?(s=E&~g,s!==0?f=hn(s):(y&=E,y!==0?f=hn(y):o||(o=E&~n,o!==0&&(f=hn(o))))):(E=s&~g,E!==0?f=hn(E):y!==0?f=hn(y):o||(o=s&~n,o!==0&&(f=hn(o)))),f===0?0:r!==0&&r!==f&&(r&g)===0&&(g=f&-f,o=r&-r,g>=o||g===32&&(o&4194048)!==0)?r:f}function va(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function vr(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32: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 r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Br(){var n=yn;return yn<<=1,(yn&62914560)===0&&(yn=4194304),n}function xr(n){for(var r=[],o=0;31>o;o++)r.push(n);return r}function Ta(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function fi(n,r,o,s,f,g){var y=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var E=n.entanglements,D=n.expirationTimes,Q=n.hiddenUpdates;for(o=y&~o;0"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Cr=/[\n"\\]/g;function zn(n){return n.replace(Cr,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function vl(n,r,o,s,f,g,y,E){n.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?n.type=y:n.removeAttribute("type"),r!=null?y==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+Gn(r)):n.value!==""+Gn(r)&&(n.value=""+Gn(r)):y!=="submit"&&y!=="reset"||n.removeAttribute("value"),r!=null?Ao(n,y,Gn(r)):o!=null?Ao(n,y,Gn(o)):s!=null&&n.removeAttribute("value"),f==null&&g!=null&&(n.defaultChecked=!!g),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?n.name=""+Gn(E):n.removeAttribute("name")}function xl(n,r,o,s,f,g,y,E){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.type=g),r!=null||o!=null){if(!(g!=="submit"&&g!=="reset"||r!=null)){Sr(n);return}o=o!=null?""+Gn(o):"",r=r!=null?""+Gn(r):o,E||r===n.value||(n.value=r),n.defaultValue=r}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,n.checked=E?n.checked:!!s,n.defaultChecked=!!s,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(n.name=y),Sr(n)}function Ao(n,r,o){r==="number"&&mi(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function Yr(n,r,o,s){if(n=n.options,r){r={};for(var f=0;f"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ln=!1;if(vt)try{var la={};Object.defineProperty(la,"passive",{get:function(){ln=!0}}),window.addEventListener("test",la,la),window.removeEventListener("test",la,la)}catch{ln=!1}var tn=null,sa=null,zt=null;function Va(){if(zt)return zt;var n,r=sa,o=r.length,s,f="value"in tn?tn.value:tn.textContent,g=f.length;for(n=0;n=wl),nd=" ",ad=!1;function j(n,r){switch(n){case"keyup":return ed.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ie(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Ce=!1;function Re(n,r){switch(n){case"compositionend":return ie(r);case"keypress":return r.which!==32?null:(ad=!0,nd);case"textInput":return n=r.data,n===nd&&ad?null:n;default:return null}}function De(n,r){if(Ce)return n==="compositionend"||!xc&&j(n,r)?(n=Va(),zt=sa=tn=null,Ce=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:o,offset:r-n};n=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=to(o)}}function os(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?os(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function rd(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=mi(n.document);r instanceof n.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)n=r.contentWindow;else break;r=mi(n.document)}return r}function yc(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var Yh=vt&&"documentMode"in document&&11>=document.documentMode,nn=null,Ea=null,Kn=null,ls=!1;function id(n,r,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;ls||nn==null||nn!==mi(s)||(s=nn,"selectionStart"in s&&yc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Kn&&Ca(Kn,s)||(Kn=s,s=qd(Ea,"onSelect"),0>=y,f-=y,Ei=1<<32-rt(r)+f|o<et?(dt=Le,Le=null):dt=Le.sibling;var Et=J(q,Le,Z[et],ue);if(Et===null){Le===null&&(Le=dt);break}n&&Le&&Et.alternate===null&&r(q,Le),H=g(Et,H,et),Ct===null?$e=Et:Ct.sibling=Et,Ct=Et,Le=dt}if(et===Z.length)return o(q,Le),ht&&io(q,et),$e;if(Le===null){for(;etet?(dt=Le,Le=null):dt=Le.sibling;var nl=J(q,Le,Et.value,ue);if(nl===null){Le===null&&(Le=dt);break}n&&Le&&nl.alternate===null&&r(q,Le),H=g(nl,H,et),Ct===null?$e=nl:Ct.sibling=nl,Ct=nl,Le=dt}if(Et.done)return o(q,Le),ht&&io(q,et),$e;if(Le===null){for(;!Et.done;et++,Et=Z.next())Et=fe(q,Et.value,ue),Et!==null&&(H=g(Et,H,et),Ct===null?$e=Et:Ct.sibling=Et,Ct=Et);return ht&&io(q,et),$e}for(Le=s(Le);!Et.done;et++,Et=Z.next())Et=re(Le,q,et,Et.value,ue),Et!==null&&(n&&Et.alternate!==null&&Le.delete(Et.key===null?et:Et.key),H=g(Et,H,et),Ct===null?$e=Et:Ct.sibling=Et,Ct=Et);return n&&Le.forEach(function(qR){return r(q,qR)}),ht&&io(q,et),$e}function Ut(q,H,Z,ue){if(typeof Z=="object"&&Z!==null&&Z.type===w&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case C:e:{for(var $e=Z.key;H!==null;){if(H.key===$e){if($e=Z.type,$e===w){if(H.tag===7){o(q,H.sibling),ue=f(H,Z.props.children),ue.return=q,q=ue;break e}}else if(H.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===F&&Nl($e)===H.type){o(q,H.sibling),ue=f(H,Z.props),Rc(ue,Z),ue.return=q,q=ue;break e}o(q,H);break}else r(q,H);H=H.sibling}Z.type===w?(ue=Tl(Z.props.children,q.mode,ue,Z.key),ue.return=q,q=ue):(ue=ud(Z.type,Z.key,Z.props,null,q.mode,ue),Rc(ue,Z),ue.return=q,q=ue)}return y(q);case O:e:{for($e=Z.key;H!==null;){if(H.key===$e)if(H.tag===4&&H.stateNode.containerInfo===Z.containerInfo&&H.stateNode.implementation===Z.implementation){o(q,H.sibling),ue=f(H,Z.children||[]),ue.return=q,q=ue;break e}else{o(q,H);break}else r(q,H);H=H.sibling}ue=tg(Z,q.mode,ue),ue.return=q,q=ue}return y(q);case F:return Z=Nl(Z),Ut(q,H,Z,ue)}if(ve(Z))return Ne(q,H,Z,ue);if(U(Z)){if($e=U(Z),typeof $e!="function")throw Error(i(150));return Z=$e.call(Z),Ge(q,H,Z,ue)}if(typeof Z.then=="function")return Ut(q,H,bd(Z),ue);if(Z.$$typeof===I)return Ut(q,H,hd(q,Z),ue);vd(q,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,H!==null&&H.tag===6?(o(q,H.sibling),ue=f(H,Z),ue.return=q,q=ue):(o(q,H),ue=eg(Z,q.mode,ue),ue.return=q,q=ue),y(q)):o(q,H)}return function(q,H,Z,ue){try{kc=0;var $e=Ut(q,H,Z,ue);return bs=null,$e}catch(Le){if(Le===ms||Le===pd)throw Le;var Ct=nr(29,Le,null,q.mode);return Ct.lanes=ue,Ct.return=q,Ct}}}var Ll=Fb(!0),Wb=Fb(!1),Po=!1;function hg(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gg(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Uo(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function $o(n,r,o){var s=n.updateQueue;if(s===null)return null;if(s=s.shared,(kt&2)!==0){var f=s.pending;return f===null?r.next=r:(r.next=f.next,f.next=r),s.pending=r,r=cd(n),jb(n,null,o),r}return sd(n,s,r,o),cd(n)}function Oc(n,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194048)!==0)){var s=r.lanes;s&=n.pendingLanes,o|=s,r.lanes=o,Wi(n,o)}}function pg(n,r){var o=n.updateQueue,s=n.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var f=null,g=null;if(o=o.firstBaseUpdate,o!==null){do{var y={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};g===null?f=g=y:g=g.next=y,o=o.next}while(o!==null);g===null?f=g=r:g=g.next=r}else f=g=r;o={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:g,shared:s.shared,callbacks:s.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=r:n.next=r,o.lastBaseUpdate=r}var mg=!1;function jc(){if(mg){var n=ps;if(n!==null)throw n}}function Tc(n,r,o,s){mg=!1;var f=n.updateQueue;Po=!1;var g=f.firstBaseUpdate,y=f.lastBaseUpdate,E=f.shared.pending;if(E!==null){f.shared.pending=null;var D=E,Q=D.next;D.next=null,y===null?g=Q:y.next=Q,y=D;var ce=n.alternate;ce!==null&&(ce=ce.updateQueue,E=ce.lastBaseUpdate,E!==y&&(E===null?ce.firstBaseUpdate=Q:E.next=Q,ce.lastBaseUpdate=D))}if(g!==null){var fe=f.baseState;y=0,ce=Q=D=null,E=g;do{var J=E.lane&-536870913,re=J!==E.lane;if(re?(ut&J)===J:(s&J)===J){J!==0&&J===gs&&(mg=!0),ce!==null&&(ce=ce.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var Ne=n,Ge=E;J=r;var Ut=o;switch(Ge.tag){case 1:if(Ne=Ge.payload,typeof Ne=="function"){fe=Ne.call(Ut,fe,J);break e}fe=Ne;break e;case 3:Ne.flags=Ne.flags&-65537|128;case 0:if(Ne=Ge.payload,J=typeof Ne=="function"?Ne.call(Ut,fe,J):Ne,J==null)break e;fe=x({},fe,J);break e;case 2:Po=!0}}J=E.callback,J!==null&&(n.flags|=64,re&&(n.flags|=8192),re=f.callbacks,re===null?f.callbacks=[J]:re.push(J))}else re={lane:J,tag:E.tag,payload:E.payload,callback:E.callback,next:null},ce===null?(Q=ce=re,D=fe):ce=ce.next=re,y|=J;if(E=E.next,E===null){if(E=f.shared.pending,E===null)break;re=E,E=re.next,re.next=null,f.lastBaseUpdate=re,f.shared.pending=null}}while(!0);ce===null&&(D=fe),f.baseState=D,f.firstBaseUpdate=Q,f.lastBaseUpdate=ce,g===null&&(f.shared.lanes=0),Go|=y,n.lanes=y,n.memoizedState=fe}}function Gb(n,r){if(typeof n!="function")throw Error(i(191,n));n.call(r)}function qb(n,r){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;ng?g:8;var y=N.T,E={};N.T=E,Vg(n,!1,r,o);try{var D=f(),Q=N.S;if(Q!==null&&Q(E,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var ce=L2(D,s);Ac(n,r,ce,lr(n))}else Ac(n,r,s,lr(n))}catch(fe){Ac(n,r,{then:function(){},status:"rejected",reason:fe},lr())}finally{te.p=g,y!==null&&E.types!==null&&(y.types=E.types),N.T=y}}function H2(){}function Ig(n,r,o,s){if(n.tag!==5)throw Error(i(476));var f=kv(n).queue;wv(n,f,r,oe,o===null?H2:function(){return Rv(n),o(s)})}function kv(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:co,lastRenderedState:oe},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:co,lastRenderedState:o},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function Rv(n){var r=kv(n);r.next===null&&(r=n.alternate.memoizedState),Ac(n,r.next.queue,{},lr())}function Ng(){return Qn(Xc)}function Ov(){return bn().memoizedState}function jv(){return bn().memoizedState}function B2(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var o=lr();n=Uo(o);var s=$o(r,n,o);s!==null&&($a(s,r,o),Oc(s,r,o)),r={cache:cg()},n.payload=r;return}r=r.return}}function F2(n,r,o){var s=lr();o={lane:s,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},jd(n)?zv(r,o):(o=Qh(n,r,o,s),o!==null&&($a(o,n,s),_v(o,r,s)))}function Tv(n,r,o){var s=lr();Ac(n,r,o,s)}function Ac(n,r,o,s){var f={lane:s,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(jd(n))zv(r,f);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=r.lastRenderedReducer,g!==null))try{var y=r.lastRenderedState,E=g(y,o);if(f.hasEagerState=!0,f.eagerState=E,At(E,y))return sd(n,r,f,0),Bt===null&&ld(),!1}catch{}if(o=Qh(n,r,f,s),o!==null)return $a(o,n,s),_v(o,r,s),!0}return!1}function Vg(n,r,o,s){if(s={lane:2,revertLane:hp(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},jd(n)){if(r)throw Error(i(479))}else r=Qh(n,o,s,2),r!==null&&$a(r,n,2)}function jd(n){var r=n.alternate;return n===Qe||r!==null&&r===Qe}function zv(n,r){xs=Sd=!0;var o=n.pending;o===null?r.next=r:(r.next=o.next,o.next=r),n.pending=r}function _v(n,r,o){if((o&4194048)!==0){var s=r.lanes;s&=n.pendingLanes,o|=s,r.lanes=o,Wi(n,o)}}var Ic={readContext:Qn,use:wd,useCallback:un,useContext:un,useEffect:un,useImperativeHandle:un,useLayoutEffect:un,useInsertionEffect:un,useMemo:un,useReducer:un,useRef:un,useState:un,useDebugValue:un,useDeferredValue:un,useTransition:un,useSyncExternalStore:un,useId:un,useHostTransitionStatus:un,useFormState:un,useActionState:un,useOptimistic:un,useMemoCache:un,useCacheRefresh:un};Ic.useEffectEvent=un;var Av={readContext:Qn,use:wd,useCallback:function(n,r){return wa().memoizedState=[n,r===void 0?null:r],n},useContext:Qn,useEffect:pv,useImperativeHandle:function(n,r,o){o=o!=null?o.concat([n]):null,Rd(4194308,4,xv.bind(null,r,n),o)},useLayoutEffect:function(n,r){return Rd(4194308,4,n,r)},useInsertionEffect:function(n,r){Rd(4,2,n,r)},useMemo:function(n,r){var o=wa();r=r===void 0?null:r;var s=n();if(Ml){nt(!0);try{n()}finally{nt(!1)}}return o.memoizedState=[s,r],s},useReducer:function(n,r,o){var s=wa();if(o!==void 0){var f=o(r);if(Ml){nt(!0);try{o(r)}finally{nt(!1)}}}else f=r;return s.memoizedState=s.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},s.queue=n,n=n.dispatch=F2.bind(null,Qe,n),[s.memoizedState,n]},useRef:function(n){var r=wa();return n={current:n},r.memoizedState=n},useState:function(n){n=jg(n);var r=n.queue,o=Tv.bind(null,Qe,r);return r.dispatch=o,[n.memoizedState,o]},useDebugValue:_g,useDeferredValue:function(n,r){var o=wa();return Ag(o,n,r)},useTransition:function(){var n=jg(!1);return n=wv.bind(null,Qe,n.queue,!0,!1),wa().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,o){var s=Qe,f=wa();if(ht){if(o===void 0)throw Error(i(407));o=o()}else{if(o=r(),Bt===null)throw Error(i(349));(ut&127)!==0||Jb(s,r,o)}f.memoizedState=o;var g={value:o,getSnapshot:r};return f.queue=g,pv(tv.bind(null,s,g,n),[n]),s.flags|=2048,Ss(9,{destroy:void 0},ev.bind(null,s,g,o,r),null),o},useId:function(){var n=wa(),r=Bt.identifierPrefix;if(ht){var o=wi,s=Ei;o=(s&~(1<<32-rt(s)-1)).toString(32)+o,r="_"+r+"R_"+o,o=Cd++,0<\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof s.is=="string"?y.createElement("select",{is:s.is}):y.createElement("select"),s.multiple?g.multiple=!0:s.size&&(g.size=s.size);break;default:g=typeof s.is=="string"?y.createElement(f,{is:s.is}):y.createElement(f)}}g[Vt]=r,g[Ht]=s;e:for(y=r.child;y!==null;){if(y.tag===5||y.tag===6)g.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===r)break e;for(;y.sibling===null;){if(y.return===null||y.return===r)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}r.stateNode=g;e:switch(ea(g,f,s),f){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&fo(r)}}return Qt(r),Xg(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,o),null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==s&&fo(r);else{if(typeof s!="string"&&r.stateNode===null)throw Error(i(166));if(n=ae.current,fs(r)){if(n=r.stateNode,o=r.memoizedProps,s=null,f=Zn,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}n[Vt]=r,n=!!(n.nodeValue===o||s!==null&&s.suppressHydrationWarning===!0||Zx(n.nodeValue,o)),n||Mo(r,!0)}else n=Yd(n).createTextNode(s),n[Vt]=r,r.stateNode=n}return Qt(r),null;case 31:if(o=r.memoizedState,n===null||n.memoizedState!==null){if(s=fs(r),o!==null){if(n===null){if(!s)throw Error(i(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(557));n[Vt]=r}else zl(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Qt(r),n=!1}else o=ig(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=o),n=!0;if(!n)return r.flags&256?(rr(r),r):(rr(r),null);if((r.flags&128)!==0)throw Error(i(558))}return Qt(r),null;case 13:if(s=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=fs(r),s!==null&&s.dehydrated!==null){if(n===null){if(!f)throw Error(i(318));if(f=r.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[Vt]=r}else zl(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Qt(r),f=!1}else f=ig(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=f),f=!0;if(!f)return r.flags&256?(rr(r),r):(rr(r),null)}return rr(r),(r.flags&128)!==0?(r.lanes=o,r):(o=s!==null,n=n!==null&&n.memoizedState!==null,o&&(s=r.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool),g=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(g=s.memoizedState.cachePool.pool),g!==f&&(s.flags|=2048)),o!==n&&o&&(r.child.flags|=8192),Id(r,r.updateQueue),Qt(r),null);case 4:return ne(),n===null&&bp(r.stateNode.containerInfo),Qt(r),null;case 10:return lo(r.type),Qt(r),null;case 19:if(L(mn),s=r.memoizedState,s===null)return Qt(r),null;if(f=(r.flags&128)!==0,g=s.rendering,g===null)if(f)Vc(s,!1);else{if(dn!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(g=yd(n),g!==null){for(r.flags|=128,Vc(s,!1),n=g.updateQueue,r.updateQueue=n,Id(r,n),r.subtreeFlags=0,n=o,o=r.child;o!==null;)Tb(o,n),o=o.sibling;return G(mn,mn.current&1|2),ht&&io(r,s.treeForkCount),r.child}n=n.sibling}s.tail!==null&&$t()>Dd&&(r.flags|=128,f=!0,Vc(s,!1),r.lanes=4194304)}else{if(!f)if(n=yd(g),n!==null){if(r.flags|=128,f=!0,n=n.updateQueue,r.updateQueue=n,Id(r,n),Vc(s,!0),s.tail===null&&s.tailMode==="hidden"&&!g.alternate&&!ht)return Qt(r),null}else 2*$t()-s.renderingStartTime>Dd&&o!==536870912&&(r.flags|=128,f=!0,Vc(s,!1),r.lanes=4194304);s.isBackwards?(g.sibling=r.child,r.child=g):(n=s.last,n!==null?n.sibling=g:r.child=g,s.last=g)}return s.tail!==null?(n=s.tail,s.rendering=n,s.tail=n.sibling,s.renderingStartTime=$t(),n.sibling=null,o=mn.current,G(mn,f?o&1|2:o&1),ht&&io(r,s.treeForkCount),n):(Qt(r),null);case 22:case 23:return rr(r),vg(),s=r.memoizedState!==null,n!==null?n.memoizedState!==null!==s&&(r.flags|=8192):s&&(r.flags|=8192),s?(o&536870912)!==0&&(r.flags&128)===0&&(Qt(r),r.subtreeFlags&6&&(r.flags|=8192)):Qt(r),o=r.updateQueue,o!==null&&Id(r,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),s=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),s!==o&&(r.flags|=2048),n!==null&&L(Il),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),lo(Sn),Qt(r),null;case 25:return null;case 30:return null}throw Error(i(156,r.tag))}function X2(n,r){switch(ag(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return lo(Sn),ne(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return se(r),null;case 31:if(r.memoizedState!==null){if(rr(r),r.alternate===null)throw Error(i(340));zl()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 13:if(rr(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(i(340));zl()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return L(mn),null;case 4:return ne(),null;case 10:return lo(r.type),null;case 22:case 23:return rr(r),vg(),n!==null&&L(Il),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return lo(Sn),null;case 25:return null;default:return null}}function nx(n,r){switch(ag(r),r.tag){case 3:lo(Sn),ne();break;case 26:case 27:case 5:se(r);break;case 4:ne();break;case 31:r.memoizedState!==null&&rr(r);break;case 13:rr(r);break;case 19:L(mn);break;case 10:lo(r.type);break;case 22:case 23:rr(r),vg(),n!==null&&L(Il);break;case 24:lo(Sn)}}function Lc(n,r){try{var o=r.updateQueue,s=o!==null?o.lastEffect:null;if(s!==null){var f=s.next;o=f;do{if((o.tag&n)===n){s=void 0;var g=o.create,y=o.inst;s=g(),y.destroy=s}o=o.next}while(o!==f)}}catch(E){Nt(r,r.return,E)}}function Fo(n,r,o){try{var s=r.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var g=f.next;s=g;do{if((s.tag&n)===n){var y=s.inst,E=y.destroy;if(E!==void 0){y.destroy=void 0,f=r;var D=o,Q=E;try{Q()}catch(ce){Nt(f,D,ce)}}}s=s.next}while(s!==g)}}catch(ce){Nt(r,r.return,ce)}}function ax(n){var r=n.updateQueue;if(r!==null){var o=n.stateNode;try{qb(r,o)}catch(s){Nt(n,n.return,s)}}}function rx(n,r,o){o.props=Dl(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(s){Nt(n,r,s)}}function Mc(n,r){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var s=n.stateNode;break;case 30:s=n.stateNode;break;default:s=n.stateNode}typeof o=="function"?n.refCleanup=o(s):o.current=s}}catch(f){Nt(n,r,f)}}function ki(n,r){var o=n.ref,s=n.refCleanup;if(o!==null)if(typeof s=="function")try{s()}catch(f){Nt(n,r,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(f){Nt(n,r,f)}else o.current=null}function ix(n){var r=n.type,o=n.memoizedProps,s=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&s.focus();break e;case"img":o.src?s.src=o.src:o.srcSet&&(s.srcset=o.srcSet)}}catch(f){Nt(n,n.return,f)}}function Kg(n,r,o){try{var s=n.stateNode;bR(s,n.type,o,r),s[Ht]=r}catch(f){Nt(n,n.return,f)}}function ox(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Zo(n.type)||n.tag===4}function Zg(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||ox(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Zo(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Qg(n,r,o){var s=n.tag;if(s===5||s===6)n=n.stateNode,r?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(n,r):(r=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,r.appendChild(n),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=Na));else if(s!==4&&(s===27&&Zo(n.type)&&(o=n.stateNode,r=null),n=n.child,n!==null))for(Qg(n,r,o),n=n.sibling;n!==null;)Qg(n,r,o),n=n.sibling}function Nd(n,r,o){var s=n.tag;if(s===5||s===6)n=n.stateNode,r?o.insertBefore(n,r):o.appendChild(n);else if(s!==4&&(s===27&&Zo(n.type)&&(o=n.stateNode),n=n.child,n!==null))for(Nd(n,r,o),n=n.sibling;n!==null;)Nd(n,r,o),n=n.sibling}function lx(n){var r=n.stateNode,o=n.memoizedProps;try{for(var s=n.type,f=r.attributes;f.length;)r.removeAttributeNode(f[0]);ea(r,s,o),r[Vt]=n,r[Ht]=o}catch(g){Nt(n,n.return,g)}}var ho=!1,wn=!1,Jg=!1,sx=typeof WeakSet=="function"?WeakSet:Set,Un=null;function K2(n,r){if(n=n.containerInfo,yp=tf,n=rd(n),yc(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var f=s.anchorOffset,g=s.focusNode;s=s.focusOffset;try{o.nodeType,g.nodeType}catch{o=null;break e}var y=0,E=-1,D=-1,Q=0,ce=0,fe=n,J=null;t:for(;;){for(var re;fe!==o||f!==0&&fe.nodeType!==3||(E=y+f),fe!==g||s!==0&&fe.nodeType!==3||(D=y+s),fe.nodeType===3&&(y+=fe.nodeValue.length),(re=fe.firstChild)!==null;)J=fe,fe=re;for(;;){if(fe===n)break t;if(J===o&&++Q===f&&(E=y),J===g&&++ce===s&&(D=y),(re=fe.nextSibling)!==null)break;fe=J,J=fe.parentNode}fe=re}o=E===-1||D===-1?null:{start:E,end:D}}else o=null}o=o||{start:0,end:0}}else o=null;for(Sp={focusedElem:n,selectionRange:o},tf=!1,Un=r;Un!==null;)if(r=Un,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,Un=n;else for(;Un!==null;){switch(r=Un,g=r.alternate,n=r.flags,r.tag){case 0:if((n&4)!==0&&(n=r.updateQueue,n=n!==null?n.events:null,n!==null))for(o=0;o title"))),ea(g,s,o),g[Vt]=n,qt(g),s=g;break e;case"link":var y=gy("link","href",f).get(s+(o.href||""));if(y){for(var E=0;EUt&&(y=Ut,Ut=Ge,Ge=y);var q=Ci(E,Ge),H=Ci(E,Ut);if(q&&H&&(re.rangeCount!==1||re.anchorNode!==q.node||re.anchorOffset!==q.offset||re.focusNode!==H.node||re.focusOffset!==H.offset)){var Z=fe.createRange();Z.setStart(q.node,q.offset),re.removeAllRanges(),Ge>Ut?(re.addRange(Z),re.extend(H.node,H.offset)):(Z.setEnd(H.node,H.offset),re.addRange(Z))}}}}for(fe=[],re=E;re=re.parentNode;)re.nodeType===1&&fe.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;Eo?32:o,N.T=null,o=op,op=null;var g=Yo,y=vo;if(_n=0,Rs=Yo=null,vo=0,(kt&6)!==0)throw Error(i(331));var E=kt;if(kt|=4,xx(g.current),mx(g,g.current,y,o),kt=E,Bc(0,!1),We&&typeof We.onPostCommitFiberRoot=="function")try{We.onPostCommitFiberRoot(Ie,g)}catch{}return!0}finally{te.p=f,N.T=s,Mx(n,r)}}function Px(n,r,o){r=Rr(o,r),r=Pg(n.stateNode,r,2),n=$o(n,r,2),n!==null&&(Ta(n,2),Ri(n))}function Nt(n,r,o){if(n.tag===3)Px(n,n,o);else for(;r!==null;){if(r.tag===3){Px(r,n,o);break}else if(r.tag===1){var s=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(qo===null||!qo.has(s))){n=Rr(o,n),o=Uv(2),s=$o(r,o,2),s!==null&&($v(o,s,r,n),Ta(s,2),Ri(s));break}}r=r.return}}function up(n,r,o){var s=n.pingCache;if(s===null){s=n.pingCache=new J2;var f=new Set;s.set(r,f)}else f=s.get(r),f===void 0&&(f=new Set,s.set(r,f));f.has(o)||(np=!0,f.add(o),n=rR.bind(null,n,r,o),r.then(n,n))}function rR(n,r,o){var s=n.pingCache;s!==null&&s.delete(r),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,Bt===n&&(ut&o)===o&&(dn===4||dn===3&&(ut&62914560)===ut&&300>$t()-Md?(kt&2)===0&&Os(n,0):ap|=o,ks===ut&&(ks=0)),Ri(n)}function Ux(n,r){r===0&&(r=Br()),n=jl(n,r),n!==null&&(Ta(n,r),Ri(n))}function iR(n){var r=n.memoizedState,o=0;r!==null&&(o=r.retryLane),Ux(n,o)}function oR(n,r){var o=0;switch(n.tag){case 31:case 13:var s=n.stateNode,f=n.memoizedState;f!==null&&(o=f.retryLane);break;case 19:s=n.stateNode;break;case 22:s=n.stateNode._retryCache;break;default:throw Error(i(314))}s!==null&&s.delete(r),Ux(n,o)}function lR(n,r){return ft(n,r)}var Fd=null,Ts=null,dp=!1,Wd=!1,fp=!1,Ko=0;function Ri(n){n!==Ts&&n.next===null&&(Ts===null?Fd=Ts=n:Ts=Ts.next=n),Wd=!0,dp||(dp=!0,cR())}function Bc(n,r){if(!fp&&Wd){fp=!0;do for(var o=!1,s=Fd;s!==null;){if(n!==0){var f=s.pendingLanes;if(f===0)var g=0;else{var y=s.suspendedLanes,E=s.pingedLanes;g=(1<<31-rt(42|n)+1)-1,g&=f&~(y&~E),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(o=!0,Fx(s,g))}else g=ut,g=bt(s,s===Bt?g:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(g&3)===0||va(s,g)||(o=!0,Fx(s,g));s=s.next}while(o);fp=!1}}function sR(){$x()}function $x(){Wd=dp=!1;var n=0;Ko!==0&&xR()&&(n=Ko);for(var r=$t(),o=null,s=Fd;s!==null;){var f=s.next,g=Hx(s,r);g===0?(s.next=null,o===null?Fd=f:o.next=f,f===null&&(Ts=o)):(o=s,(n!==0||(g&3)!==0)&&(Wd=!0)),s=f}_n!==0&&_n!==5||Bc(n),Ko!==0&&(Ko=0)}function Hx(n,r){for(var o=n.suspendedLanes,s=n.pingedLanes,f=n.expirationTimes,g=n.pendingLanes&-62914561;0E)break;var ce=D.transferSize,fe=D.initiatorType;ce&&Qx(fe)&&(D=D.responseEnd,y+=ce*(D"u"?null:document;function uy(n,r,o){var s=zs;if(s&&typeof r=="string"&&r){var f=zn(r);f='link[rel="'+n+'"][href="'+f+'"]',typeof o=="string"&&(f+='[crossorigin="'+o+'"]'),cy.has(f)||(cy.add(f),n={rel:n,crossOrigin:o,href:r},s.querySelector(f)===null&&(r=s.createElement("link"),ea(r,"link",n),qt(r),s.head.appendChild(r)))}}function jR(n){xo.D(n),uy("dns-prefetch",n,null)}function TR(n,r){xo.C(n,r),uy("preconnect",n,r)}function zR(n,r,o){xo.L(n,r,o);var s=zs;if(s&&n&&r){var f='link[rel="preload"][as="'+zn(r)+'"]';r==="image"&&o&&o.imageSrcSet?(f+='[imagesrcset="'+zn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(f+='[imagesizes="'+zn(o.imageSizes)+'"]')):f+='[href="'+zn(n)+'"]';var g=f;switch(r){case"style":g=_s(n);break;case"script":g=As(n)}Ar.has(g)||(n=x({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:n,as:r},o),Ar.set(g,n),s.querySelector(f)!==null||r==="style"&&s.querySelector(qc(g))||r==="script"&&s.querySelector(Yc(g))||(r=s.createElement("link"),ea(r,"link",n),qt(r),s.head.appendChild(r)))}}function _R(n,r){xo.m(n,r);var o=zs;if(o&&n){var s=r&&typeof r.as=="string"?r.as:"script",f='link[rel="modulepreload"][as="'+zn(s)+'"][href="'+zn(n)+'"]',g=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=As(n)}if(!Ar.has(g)&&(n=x({rel:"modulepreload",href:n},r),Ar.set(g,n),o.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Yc(g)))return}s=o.createElement("link"),ea(s,"link",n),qt(s),o.head.appendChild(s)}}}function AR(n,r,o){xo.S(n,r,o);var s=zs;if(s&&n){var f=Aa(s).hoistableStyles,g=_s(n);r=r||"default";var y=f.get(g);if(!y){var E={loading:0,preload:null};if(y=s.querySelector(qc(g)))E.loading=5;else{n=x({rel:"stylesheet",href:n,"data-precedence":r},o),(o=Ar.get(g))&&jp(n,o);var D=y=s.createElement("link");qt(D),ea(D,"link",n),D._p=new Promise(function(Q,ce){D.onload=Q,D.onerror=ce}),D.addEventListener("load",function(){E.loading|=1}),D.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Kd(y,r,s)}y={type:"stylesheet",instance:y,count:1,state:E},f.set(g,y)}}}function IR(n,r){xo.X(n,r);var o=zs;if(o&&n){var s=Aa(o).hoistableScripts,f=As(n),g=s.get(f);g||(g=o.querySelector(Yc(f)),g||(n=x({src:n,async:!0},r),(r=Ar.get(f))&&Tp(n,r),g=o.createElement("script"),qt(g),ea(g,"link",n),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(f,g))}}function NR(n,r){xo.M(n,r);var o=zs;if(o&&n){var s=Aa(o).hoistableScripts,f=As(n),g=s.get(f);g||(g=o.querySelector(Yc(f)),g||(n=x({src:n,async:!0,type:"module"},r),(r=Ar.get(f))&&Tp(n,r),g=o.createElement("script"),qt(g),ea(g,"link",n),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(f,g))}}function dy(n,r,o,s){var f=(f=ae.current)?Xd(f):null;if(!f)throw Error(i(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(r=_s(o.href),o=Aa(f).hoistableStyles,s=o.get(r),s||(s={type:"style",instance:null,count:0,state:null},o.set(r,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=_s(o.href);var g=Aa(f).hoistableStyles,y=g.get(n);if(y||(f=f.ownerDocument||f,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(n,y),(g=f.querySelector(qc(n)))&&!g._p&&(y.instance=g,y.state.loading=5),Ar.has(n)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Ar.set(n,o),g||VR(f,n,o,y.state))),r&&s===null)throw Error(i(528,""));return y}if(r&&s!==null)throw Error(i(529,""));return null;case"script":return r=o.async,o=o.src,typeof o=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=As(o),o=Aa(f).hoistableScripts,s=o.get(r),s||(s={type:"script",instance:null,count:0,state:null},o.set(r,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,n))}}function _s(n){return'href="'+zn(n)+'"'}function qc(n){return'link[rel="stylesheet"]['+n+"]"}function fy(n){return x({},n,{"data-precedence":n.precedence,precedence:null})}function VR(n,r,o,s){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?s.loading=1:(r=n.createElement("link"),s.preload=r,r.addEventListener("load",function(){return s.loading|=1}),r.addEventListener("error",function(){return s.loading|=2}),ea(r,"link",o),qt(r),n.head.appendChild(r))}function As(n){return'[src="'+zn(n)+'"]'}function Yc(n){return"script[async]"+n}function hy(n,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var s=n.querySelector('style[data-href~="'+zn(o.href)+'"]');if(s)return r.instance=s,qt(s),s;var f=x({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return s=(n.ownerDocument||n).createElement("style"),qt(s),ea(s,"style",f),Kd(s,o.precedence,n),r.instance=s;case"stylesheet":f=_s(o.href);var g=n.querySelector(qc(f));if(g)return r.state.loading|=4,r.instance=g,qt(g),g;s=fy(o),(f=Ar.get(f))&&jp(s,f),g=(n.ownerDocument||n).createElement("link"),qt(g);var y=g;return y._p=new Promise(function(E,D){y.onload=E,y.onerror=D}),ea(g,"link",s),r.state.loading|=4,Kd(g,o.precedence,n),r.instance=g;case"script":return g=As(o.src),(f=n.querySelector(Yc(g)))?(r.instance=f,qt(f),f):(s=o,(f=Ar.get(g))&&(s=x({},o),Tp(s,f)),n=n.ownerDocument||n,f=n.createElement("script"),qt(f),ea(f,"link",s),n.head.appendChild(f),r.instance=f);case"void":return null;default:throw Error(i(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(s=r.instance,r.state.loading|=4,Kd(s,o.precedence,n));return r.instance}function Kd(n,r,o){for(var s=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,g=f,y=0;y title"):null)}function LR(n,r,o){if(o===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(n=r.disabled,typeof r.precedence=="string"&&n==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function my(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function MR(n,r,o,s){if(o.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var f=_s(s.href),g=r.querySelector(qc(f));if(g){r=g._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=Qd.bind(n),r.then(n,n)),o.state.loading|=4,o.instance=g,qt(g);return}g=r.ownerDocument||r,s=fy(s),(f=Ar.get(f))&&jp(s,f),g=g.createElement("link"),qt(g);var y=g;y._p=new Promise(function(E,D){y.onload=E,y.onerror=D}),ea(g,"link",s),o.instance=g}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(o,r),(r=o.state.preload)&&(o.state.loading&3)===0&&(n.count++,o=Qd.bind(n),r.addEventListener("load",o),r.addEventListener("error",o))}}var zp=0;function DR(n,r){return n.stylesheets&&n.count===0&&ef(n,n.stylesheets),0zp?50:800)+r);return n.unsuspend=o,function(){n.unsuspend=null,clearTimeout(s),clearTimeout(f)}}:null}function Qd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ef(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Jd=null;function ef(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Jd=new Map,r.forEach(PR,n),Jd=null,Qd.call(n))}function PR(n,r){if(!(r.state.loading&4)){var o=Jd.get(n);if(o)var s=o.get(null);else{o=new Map,Jd.set(n,o);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Pp.exports=aO(),Pp.exports}var iO=rO();function vC(e){var t=Object.create(null);return function(a){return t[a]===void 0&&(t[a]=e(a)),t[a]}}var oO=/^((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)-.*))$/,lO=vC(function(e){return oO.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function sO(e){if(e.sheet)return e.sheet;for(var t=0;t0?ra(oc,--Wa):0,Ks--,Rn===10&&(Ks=1,ih--),Rn}function hr(){return Rn=Wa2||Ou(Rn)>3?"":" "}function SO(e,t){for(;--t&&hr()&&!(Rn<48||Rn>102||Rn>57&&Rn<65||Rn>70&&Rn<97););return Du(e,Rf()+(t<6&&Ii()==32&&hr()==32))}function Im(e){for(;hr();)switch(Rn){case e:return Wa;case 34:case 39:e!==34&&e!==39&&Im(Rn);break;case 40:e===41&&Im(e);break;case 92:hr();break}return Wa}function CO(e,t){for(;hr()&&e+Rn!==57;)if(e+Rn===84&&Ii()===47)break;return"/*"+Du(t,Wa-1)+"*"+rh(e===47?e:hr())}function EO(e){for(;!Ou(Ii());)hr();return Du(e,Wa)}function wO(e){return wC(jf("",null,null,null,[""],e=EC(e),0,[0],e))}function jf(e,t,a,i,l,c,d,h,p){for(var b=0,v=0,x=d,S=0,C=0,O=0,w=1,T=1,A=1,_=0,I="",M=l,R=c,V=i,P=I;T;)switch(O=_,_=hr()){case 40:if(O!=108&&ra(P,x-1)==58){Am(P+=Ot(Of(_),"&","&\f"),"&\f")!=-1&&(A=-1);break}case 34:case 39:case 91:P+=Of(_);break;case 9:case 10:case 13:case 32:P+=yO(O);break;case 92:P+=SO(Rf()-1,7);continue;case 47:switch(Ii()){case 42:case 47:cf(kO(CO(hr(),Rf()),t,a),p);break;default:P+="/"}break;case 123*w:h[b++]=Ti(P)*A;case 125*w:case 59:case 0:switch(_){case 0:case 125:T=0;case 59+v:A==-1&&(P=Ot(P,/\f/g,"")),C>0&&Ti(P)-x&&cf(C>32?Hy(P+";",i,a,x-1):Hy(Ot(P," ","")+";",i,a,x-2),p);break;case 59:P+=";";default:if(cf(V=$y(P,t,a,b,v,l,h,I,M=[],R=[],x),c),_===123)if(v===0)jf(P,t,V,V,M,c,x,h,R);else switch(S===99&&ra(P,3)===110?100:S){case 100:case 108:case 109:case 115:jf(e,V,V,i&&cf($y(e,V,V,0,0,l,h,I,l,M=[],x),R),l,R,x,h,i?M:R);break;default:jf(P,V,V,V,[""],R,0,h,R)}}b=v=C=0,w=A=1,I=P="",x=d;break;case 58:x=1+Ti(P),C=O;default:if(w<1){if(_==123)--w;else if(_==125&&w++==0&&xO()==125)continue}switch(P+=rh(_),_*w){case 38:A=v>0?1:(P+="\f",-1);break;case 44:h[b++]=(Ti(P)-1)*A,A=1;break;case 64:Ii()===45&&(P+=Of(hr())),S=Ii(),v=x=Ti(I=P+=EO(Rf())),_++;break;case 45:O===45&&Ti(P)==2&&(w=0)}}return c}function $y(e,t,a,i,l,c,d,h,p,b,v){for(var x=l-1,S=l===0?c:[""],C=f0(S),O=0,w=0,T=0;O0?S[A]+" "+_:Ot(_,/&\f/g,S[A])))&&(p[T++]=I);return oh(e,t,a,l===0?u0:h,p,b,v)}function kO(e,t,a){return oh(e,t,a,xC,rh(vO()),Ru(e,2,-2),0)}function Hy(e,t,a,i){return oh(e,t,a,d0,Ru(e,0,i),Ru(e,i+1,-1),i)}function Fs(e,t){for(var a="",i=f0(e),l=0;l6)switch(ra(e,t+1)){case 109:if(ra(e,t+4)!==45)break;case 102:return Ot(e,/(.+:)(.+)-([^]+)/,"$1"+Rt+"$2-$3$1"+Ff+(ra(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Am(e,"stretch")?kC(Ot(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ra(e,t+1)!==115)break;case 6444:switch(ra(e,Ti(e)-3-(~Am(e,"!important")&&10))){case 107:return Ot(e,":",":"+Rt)+e;case 101:return Ot(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rt+(ra(e,14)===45?"inline-":"")+"box$3$1"+Rt+"$2$3$1"+ga+"$2box$3")+e}break;case 5936:switch(ra(e,t+11)){case 114:return Rt+e+ga+Ot(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rt+e+ga+Ot(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rt+e+ga+Ot(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rt+e+ga+e+e}return e}var NO=function(t,a,i,l){if(t.length>-1&&!t.return)switch(t.type){case d0:t.return=kC(t.value,t.length);break;case yC:return Fs([tu(t,{value:Ot(t.value,"@","@"+Rt)})],l);case u0:if(t.length)return bO(t.props,function(c){switch(mO(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fs([tu(t,{props:[Ot(c,/:(read-\w+)/,":"+Ff+"$1")]})],l);case"::placeholder":return Fs([tu(t,{props:[Ot(c,/:(plac\w+)/,":"+Rt+"input-$1")]}),tu(t,{props:[Ot(c,/:(plac\w+)/,":"+Ff+"$1")]}),tu(t,{props:[Ot(c,/:(plac\w+)/,ga+"input-$1")]})],l)}return""})}},VO=[NO],LO=function(t){var a=t.key;if(a==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(w){var T=w.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var l=t.stylisPlugins||VO,c={},d,h=[];d=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(w){for(var T=w.getAttribute("data-emotion").split(" "),A=1;A=4;++i,l-=4)a=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,t=(a&65535)*1540483477+((a>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&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 HO={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},BO=/[A-Z]|^ms/g,FO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,OC=function(t){return t.charCodeAt(1)===45},qy=function(t){return t!=null&&typeof t!="boolean"},Wp=vC(function(e){return OC(e)?e:e.replace(BO,"-$&").toLowerCase()}),Yy=function(t,a){switch(t){case"animation":case"animationName":if(typeof a=="string")return a.replace(FO,function(i,l,c){return zi={name:l,styles:c,next:zi},l})}return HO[t]!==1&&!OC(t)&&typeof a=="number"&&a!==0?a+"px":a};function ju(e,t,a){if(a==null)return"";var i=a;if(i.__emotion_styles!==void 0)return i;switch(typeof a){case"boolean":return"";case"object":{var l=a;if(l.anim===1)return zi={name:l.name,styles:l.styles,next:zi},l.name;var c=a;if(c.styles!==void 0){var d=c.next;if(d!==void 0)for(;d!==void 0;)zi={name:d.name,styles:d.styles,next:zi},d=d.next;var h=c.styles+";";return h}return WO(e,t,a)}case"function":{if(e!==void 0){var p=zi,b=a(e);return zi=p,ju(e,t,b)}break}}var v=a;if(t==null)return v;var x=t[v];return x!==void 0?x:v}function WO(e,t,a){var i="";if(Array.isArray(a))for(var l=0;li?.(...a))}}const QO=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),JO=/^on[A-Z]/;function Tu(...e){let t={};for(let a of e){for(let i in t){if(JO.test(i)&&typeof t[i]=="function"&&typeof a[i]=="function"){t[i]=ZO(t[i],a[i]);continue}if(i==="className"||i==="class"){t[i]=QO(t[i],a[i]);continue}if(i==="style"){t[i]=Object.assign({},t[i]??{},a[i]??{});continue}t[i]=a[i]!==void 0?a[i]:t[i]}for(let i in a)t[i]===void 0&&(t[i]=a[i])}return t}const ej=parseInt(m.version.split(".")[0],10),tj=ej>=19;function Gp(e,t){if(e!=null){if(typeof e=="function")return e(t);try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function nj(...e){const t=e.filter(a=>a!=null);if(tj){const a=new Map;return i=>(t.forEach(l=>{const c=Gp(l,i);c&&a.set(l,c)}),()=>{t.forEach(l=>{const c=a.get(l);c&&typeof c=="function"?c():Gp(l,null)}),a.clear()})}else return a=>{t.forEach(i=>{Gp(i,a)})}}function lc(e){const t=Object.assign({},e);for(let a in t)t[a]===void 0&&delete t[a];return t}const Ba=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),pr=e=>typeof e=="string",x0=e=>typeof e=="function",ia=(...e)=>{const t=[];for(let a=0;a{const t=e.reduce((a,i)=>(i?.forEach(l=>a.add(l)),a),new Set([]));return Array.from(t)};function ij(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Ws(e={}){const{name:t,strict:a=!0,hookName:i="useContext",providerName:l="Provider",errorMessage:c,defaultValue:d}=e,h=m.createContext(d);h.displayName=t;function p(){const b=m.useContext(h);if(!b&&a){const v=new Error(c??ij(i,l));throw v.name="ContextError",Error.captureStackTrace?.(v,p),v}return b}return[h.Provider,p,h]}const[oj,Pu]=Ws({name:"ChakraContext",strict:!0,providerName:""});function lj(e){const{value:t,children:a}=e;return u.jsxs(oj,{value:t,children:[!t._config.disableLayers&&u.jsx(Qy,{styles:t.layers.atRule}),u.jsx(Qy,{styles:t._global}),a]})}const sj=(e,t)=>{const a={},i={},l=Object.keys(e);for(const c of l)t(c)?i[c]=e[c]:a[c]=e[c];return[i,a]},Gs=(e,t)=>{const a=x0(t)?t:i=>t.includes(i);return sj(e,a)},cj=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function uj(e){return typeof e=="string"&&cj.has(e)}function dj(e,t,a){const{css:i,isValidProperty:l}=Pu(),{children:c,...d}=e,h=m.useMemo(()=>{const[S,C]=Gs(d,_=>a(_,t.variantKeys)),[O,w]=Gs(C,t.variantKeys),[T,A]=Gs(w,l);return{forwardedProps:S,variantProps:O,styleProps:T,elementProps:A}},[t.variantKeys,a,d,l]),{css:p,...b}=h.styleProps,v=m.useMemo(()=>{const S={...h.variantProps},C=t.variantKeys.includes("colorPalette"),O=t.variantKeys.includes("orientation");return C||(S.colorPalette=d.colorPalette),O||(S.orientation=d.orientation),t(S)},[t,h.variantProps,d.colorPalette,d.orientation]);return{styles:m.useMemo(()=>i(v,...fj(p),b),[i,v,p,b]),props:{...h.forwardedProps,...h.elementProps,children:c}}}const fj=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),hj=aj(lO),gj=hj,pj=e=>e!=="theme",mj=(e,t,a)=>{let i;if(t){const l=t.shouldForwardProp;i=e.__emotion_forwardProp&&l?c=>e.__emotion_forwardProp(c)&&l(c):l}return typeof i!="function"&&a&&(i=e.__emotion_forwardProp),i};let bj=typeof document<"u";const Jy=({cache:e,serialized:t,isStringTag:a})=>{h0(e,t,a);const i=TC(()=>g0(e,t,a));if(!bj&&i!==void 0){let l=t.name,c=t.next;for(;c!==void 0;)l=ia(l,c.name),c=c.next;return u.jsx("style",{"data-emotion":ia(e.key,l),dangerouslySetInnerHTML:{__html:i},nonce:e.sheet.nonce})}return null},eS={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},vj=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),xj=(e,t={},a={})=>{if(vj(eS,e)){a.forwardProps||(a.forwardProps=[]);const b=eS[e];a.forwardProps=y0([...a.forwardProps,...b])}const i=e.__emotion_real===e,l=i&&e.__emotion_base||e;let c,d;a!==void 0&&(c=a.label,d=a.target);let h=[];const p=m0((b,v,x)=>{const{cva:S,isValidProperty:C}=Pu(),O=t.__cva__?t:S(t),w=Sj(e.__emotion_cva,O),T=ve=>(N,te)=>ve.includes(N)?!0:!te?.includes(N)&&!C(N);!a.shouldForwardProp&&a.forwardProps&&(a.shouldForwardProp=T(a.forwardProps));const A=(ve,N)=>{const te=typeof e=="string"&&e.charCodeAt(0)>96?gj:pj,oe=!N?.includes(ve)&&!C(ve);return te(ve)&&oe},_=mj(e,a,i)||A,I=m.useMemo(()=>Object.assign({},a.defaultProps,lc(b)),[b]),{props:M,styles:R}=dj(I,w,_);let V="",P=[R],F=M;if(M.theme==null){F={};for(let ve in M)F[ve]=M[ve];F.theme=m.useContext(b0)}typeof M.className=="string"?V=RC(v.registered,P,M.className):M.className!=null&&(V=ia(V,M.className));const B=p0(h.concat(P),v.registered,F);B.styles&&(V=ia(V,`${v.key}-${B.name}`)),d!==void 0&&(V=ia(V,d));const W=!_("as");let Y=W&&M.as||l,U={};for(let ve in M)if(!(W&&ve==="as")){if(uj(ve)){const N=ve.replace("html","").toLowerCase();U[N]=M[ve];continue}_(ve)&&(U[ve]=M[ve])}let be=V.trim();be?U.className=be:Reflect.deleteProperty(U,"className"),U.ref=x;const de=a.forwardAsChild||a.forwardProps?.includes("asChild");if(M.asChild&&!de){const ve=m.isValidElement(M.children)?m.Children.only(M.children):m.Children.toArray(M.children).find(m.isValidElement);if(!ve)throw new Error("[chakra-ui > factory] No valid child found");Y=ve.type,U.children=null,Reflect.deleteProperty(U,"asChild"),U=Tu(U,ve.props),U.ref=nj(x,rj(ve))}return U.as&&de?(U.as=void 0,u.jsxs(m.Fragment,{children:[u.jsx(Jy,{cache:v,serialized:B,isStringTag:typeof Y=="string"}),u.jsx(Y,{asChild:!0,...U,children:u.jsx(M.as,{children:U.children})})]})):u.jsxs(m.Fragment,{children:[u.jsx(Jy,{cache:v,serialized:B,isStringTag:typeof Y=="string"}),u.jsx(Y,{...U})]})});return p.displayName=c!==void 0?c:`chakra(${typeof l=="string"?l:l.displayName||l.name||"Component"})`,p.__emotion_real=p,p.__emotion_base=l,p.__emotion_forwardProp=a.shouldForwardProp,p.__emotion_cva=t,Object.defineProperty(p,"toString",{value(){return`.${d}`}}),p},qp=xj.bind(),Yp=new Map,yj=new Proxy(qp,{apply(e,t,a){return qp(...a)},get(e,t){return Yp.has(t)||Yp.set(t,qp(t)),Yp.get(t)}}),Kt=yj,Sj=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),$=Kt("div");$.displayName="Box";const _C=Object.freeze({}),AC=Object.freeze({});function S0(e){const{key:t,recipe:a}=e,i=Pu();return m.useMemo(()=>{const l=a||(t!=null?i.getRecipe(t):{});return i.cva(structuredClone(l))},[t,a,i])}const Cj=e=>e.charAt(0).toUpperCase()+e.slice(1);function jo(e){const{key:t,recipe:a}=e,i=Cj(t||a.className||"Component"),[l,c]=Ws({strict:!1,name:`${i}PropsContext`,providerName:`${i}PropsContext`});function d(b){const{unstyled:v,...x}=b,S=S0({key:t,recipe:x.recipe||a}),[C,O]=m.useMemo(()=>S.splitVariantProps(x),[S,x]);return{styles:v?_C:S(C),className:S.className,props:O}}const h=(b,v)=>{const x=Kt(b,{},v),S=m.forwardRef((C,O)=>{const w=c(),T=m.useMemo(()=>Tu(w,C),[C,w]),{styles:A,className:_,props:I}=d(T);return u.jsx(x,{...I,ref:O,css:[A,T.css],className:ia(_,T.className)})});return S.displayName=b.displayName||b.name,S};function p(){return l}return{withContext:h,PropsProvider:l,withPropsProvider:p,usePropsContext:c,useRecipeResult:d}}const vn=m.forwardRef(function(t,a){const{templateAreas:i,column:l,row:c,autoFlow:d,autoRows:h,templateRows:p,autoColumns:b,templateColumns:v,inline:x,...S}=t;return u.jsx(Kt.div,{...S,ref:a,css:[{display:x?"inline-grid":"grid",gridTemplateAreas:i,gridAutoColumns:b,gridColumn:l,gridRow:c,gridAutoFlow:d,gridAutoRows:h,gridTemplateRows:p,gridTemplateColumns:v},t.css]})});vn.displayName="Grid";function Tf(e){return e==null?[]:Array.isArray(e)?e:[e]}var qs=e=>e[0],lh=e=>e[e.length-1],Ej=(e,t)=>e.indexOf(t)!==-1,Xl=(e,...t)=>e.concat(t),Zl=(e,...t)=>e.filter(a=>!t.includes(a)),tS=(e,t)=>e.filter((a,i)=>i!==t),ol=e=>Array.from(new Set(e)),Xp=(e,t)=>{const a=new Set(t);return e.filter(i=>!a.has(i))},Zs=(e,t)=>Ej(e,t)?Zl(e,t):Xl(e,t);function IC(e,t,a={}){const{step:i=1,loop:l=!0}=a,c=t+i,d=e.length,h=d-1;return t===-1?i>0?0:h:c<0?l?h:0:c>=d?l?0:t>d?d:t:c}function wj(e,t,a={}){return e[IC(e,t,a)]}function kj(e,t,a={}){const{step:i=1,loop:l=!0}=a;return IC(e,t,{step:-i,loop:l})}function Rj(e,t,a={}){return e[kj(e,t,a)]}function nS(e,t){return e.reduce(([a,i],l)=>(t(l)?a.push(l):i.push(l),[a,i]),[[],[]])}var aS=e=>e?.constructor.name==="Array",Oj=(e,t)=>{if(e.length!==t.length)return!1;for(let a=0;a{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(aS(e)&&aS(t))return Oj(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const a=Object.keys(t??Object.create(null)),i=a.length;for(let l=0;lArray.isArray(e),jj=e=>e===!0||e===!1,NC=e=>e!=null&&typeof e=="object",Kl=e=>NC(e)&&!mu(e),zf=e=>typeof e=="string",ll=e=>typeof e=="function",Tj=e=>e==null,Co=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),zj=e=>Object.prototype.toString.call(e),VC=Function.prototype.toString,_j=VC.call(Object),Aj=e=>{if(!NC(e)||zj(e)!="[object Object]"||Vj(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const a=Co(t,"constructor")&&t.constructor;return typeof a=="function"&&a instanceof a&&VC.call(a)==_j},Ij=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,Nj=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,Vj=e=>Ij(e)||Nj(e),Lj=e=>e(),Mj=()=>{},zu=(...e)=>(...t)=>{e.forEach(function(a){a?.(...t)})};function So(e,t,...a){if(e in t){const l=t[e];return ll(l)?l(...a):l}const i=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(i,So),i}var LC=(e,t)=>{try{return e()}catch(a){return a instanceof Error&&Error.captureStackTrace?.(a,LC),t?.()}},{floor:MC,abs:rS,round:sh,min:Dj,max:Pj,pow:Uj,sign:$j}=Math,Vm=e=>Number.isNaN(e),hl=e=>Vm(e)?0:e,DC=(e,t)=>(e%t+t)%t,Hj=(e,t)=>(e%t+t)%t,Bj=(e,t,a)=>e===0?a:t[e-1],Fj=(e,t,a)=>e===t.length-1?a:t[e+1],Wj=(e,t)=>hl(e)>=t,Gj=(e,t)=>hl(e)<=t,PC=(e,t,a)=>{const i=hl(e),l=t==null||i>=t,c=a==null||i<=a;return l&&c},qj=(e,t,a)=>sh((hl(e)-t)/a)*a+t,Bn=(e,t,a)=>Dj(Pj(hl(e),t),a),ch=(e,t,a)=>(hl(e)-t)/(a-t),C0=(e,t,a,i)=>Bn(qj(e*(a-t)+t,t,i),t,a),iS=(e,t)=>{let a=e,i=t.toString(),l=i.indexOf("."),c=l>=0?i.length-l:0;if(c>0){let d=Uj(10,c);a=sh(a*d)/d}return a},Kp=(e,t)=>typeof t=="number"?MC(e*t+.5)/t:sh(e),_u=(e,t,a,i)=>{const l=t!=null?Number(t):0,c=Number(a),d=(e-l)%i;let h=rS(d)*2>=i?e+$j(d)*(i-rS(d)):e-d;if(h=iS(h,i),!Vm(l)&&hc){const p=MC((c-l)/i),b=l+p*i;h=p<=0||be[t]===a?e:[...e.slice(0,t),a,...e.slice(t+1)];function UC(e,t){const a=Bj(e,t.values,t.min),i=Fj(e,t.values,t.max);let l=t.values.slice();return function(d){let h=_u(d,a,i,t.step);return l=bu(l,e,d),l[e]=h,l}}function Yj(e,t){const a=t.values[e]+t.step;return UC(e,t)(a)}function Xj(e,t){const a=t.values[e]-t.step;return UC(e,t)(a)}var $C=(e,t,a,i)=>e.map((l,c)=>({min:c===0?t:e[c-1]+i,max:c===e.length-1?a:e[c+1]-i,value:l})),Lm=(e,t)=>{const[a,i]=e,[l,c]=t;return d=>a===i||l===c?l:l+(c-l)/(i-a)*(d-a)},Xt=(e,t=0,a=10)=>{const i=Math.pow(a,t);return sh(e*i)/i},oS=e=>{if(!Number.isFinite(e))return 0;let t=1,a=0;for(;Math.round(e*t)/t!==e;)t*=10,a+=1;return a},HC=(e,t,a)=>{let i=t==="+"?e+a:e-a;if(e%1!==0||a%1!==0){const l=10**Math.max(oS(e),oS(a));e=Math.round(e*l),a=Math.round(a*l),i=t==="+"?e+a:e-a,i/=l}return i},Kj=(e,t)=>HC(hl(e),"+",t),Zj=(e,t)=>HC(hl(e),"-",t),lS=e=>typeof e=="number"?`${e}px`:e;function E0(e){if(!Aj(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(i=>typeof i=="string"),a={};for(const i of t){const l=e[i];l!==void 0&&(a[i]=E0(l))}return a}function Qj(e,t){const a={};for(const i of t){const l=e[i];l!==void 0&&(a[i]=l)}return a}function Jj(e,t=Object.is){let a={...e};const i=new Set,l=v=>(i.add(v),()=>i.delete(v)),c=()=>{i.forEach(v=>v())};return{subscribe:l,get:v=>a[v],set:(v,x)=>{t(a[v],x)||(a[v]=x,c())},update:v=>{let x=!1;for(const S in v){const C=v[S];C!==void 0&&!t(a[S],C)&&(a[S]=C,x=!0)}x&&c()},snapshot:()=>({...a})}}function Au(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function BC(e,t){if(e==null)throw new Error(t())}function eT(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function gl(e={}){const{name:t,strict:a=!0,hookName:i="useContext",providerName:l="Provider",errorMessage:c,defaultValue:d}=e,h=m.createContext(d);h.displayName=t;function p(){const b=m.useContext(h);if(!b&&a){const v=new Error(c??eT(i,l));throw v.name="ContextError",Co(Error,"captureStackTrace")&&ll(Error.captureStackTrace)&&Error.captureStackTrace(v,p),v}return b}return[h.Provider,p,h]}const[FU,FC]=gl({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var tT=Object.defineProperty,nT=(e,t,a)=>t in e?tT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Zp=(e,t,a)=>nT(e,typeof t!="symbol"?t+"":t,a);function aT(e){if(!e)return!1;try{return e.selectionStart===0&&e.selectionEnd===0}catch{return e.value===""}}function rT(e){if(!e)return;const t=e.selectionStart??0,a=e.selectionEnd??0;Math.abs(a-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var sS=e=>Math.max(0,Math.min(1,e)),iT=(e,t)=>e.map((a,i)=>e[(Math.max(t,0)+i)%e.length]),Qp=(...e)=>t=>e.reduce((a,i)=>i(a),t),vu=()=>{},uh=e=>typeof e=="object"&&e!==null,oT=2147483647,gt=e=>e?"":void 0,lT=e=>e?"true":void 0,sT=1,cT=9,uT=11,pa=e=>uh(e)&&e.nodeType===sT&&typeof e.nodeName=="string",w0=e=>uh(e)&&e.nodeType===cT,dT=e=>uh(e)&&e===e.window,WC=e=>pa(e)?e.localName||"":"#document";function fT(e){return["html","body","#document"].includes(WC(e))}var hT=e=>uh(e)&&e.nodeType!==void 0,Qs=e=>hT(e)&&e.nodeType===uT&&"host"in e,gT=e=>pa(e)&&e.localName==="input",pT=e=>!!e?.matches("a[href]"),mT=e=>pa(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function GC(e){if(!e)return!1;const t=e.getRootNode();return qC(t)===e}var bT=/(textarea|select)/;function vT(e){if(e==null||!pa(e))return!1;try{return gT(e)&&e.selectionStart!=null||bT.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Eo(e,t){if(!e||!t||!pa(e)||!pa(t))return!1;const a=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(a&&Qs(a)){let i=t;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function li(e){return w0(e)?e:dT(e)?e.document:e?.ownerDocument??document}function xT(e){return li(e).documentElement}function xn(e){return Qs(e)?xn(e.host):w0(e)?e.defaultView??window:pa(e)?e.ownerDocument?.defaultView??window:window}function qC(e){let t=e.activeElement;for(;t?.shadowRoot;){const a=t.shadowRoot.activeElement;if(!a||a===t)break;t=a}return t}function yT(e){if(WC(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qs(e)&&e.host||xT(e);return Qs(t)?t.host:t}function ST(e){let t;try{if(t=e.getRootNode({composed:!0}),w0(t)||Qs(t))return t}catch{}return e.ownerDocument??document}var Jp=new WeakMap;function YC(e){return Jp.has(e)||Jp.set(e,xn(e).getComputedStyle(e)),Jp.get(e)}var CT=new Set(["menu","listbox","dialog","grid","tree","region"]),ET=e=>CT.has(e),wT=e=>e.getAttribute("aria-controls")?.split(" ")||[];function kT(e,t){const a=new Set,i=ST(e),l=c=>{const d=c.querySelectorAll("[aria-controls]");for(const h of d){if(h.getAttribute("aria-expanded")!=="true")continue;const p=wT(h);for(const b of p){if(!b||a.has(b))continue;a.add(b);const v=i.getElementById(b);if(v){const x=v.getAttribute("role"),S=v.getAttribute("aria-modal")==="true";if(x&&ET(x)&&!S&&(v===t||v.contains(t)||l(v)))return!0}}}return!1};return l(e)}var dh=()=>typeof document<"u";function RT(){return navigator.userAgentData?.platform??navigator.platform}function OT(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:a})=>`${t}/${a}`).join(" "):navigator.userAgent}var k0=e=>dh()&&e.test(RT()),XC=e=>dh()&&e.test(OT()),jT=e=>dh()&&e.test(navigator.vendor),cS=()=>dh()&&!!navigator.maxTouchPoints,TT=()=>k0(/^iPhone/i),zT=()=>k0(/^iPad/i)||fh()&&navigator.maxTouchPoints>1,R0=()=>TT()||zT(),_T=()=>fh()||R0(),fh=()=>k0(/^Mac/i),KC=()=>_T()&&jT(/apple/i),AT=()=>XC(/Firefox/i),IT=()=>XC(/Android/i);function NT(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function Vi(e){return NT(e)?.[0]??e.target}function VT(e){return HT(e).isComposing||e.keyCode===229}function LT(e){return e.pointerType===""&&e.isTrusted?!0:IT()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var uS=e=>e.button===0,MT=e=>e.button===2||fh()&&e.ctrlKey&&e.button===0,DT=e=>e.ctrlKey||e.altKey||e.metaKey,PT=e=>"touches"in e&&e.touches.length>0,UT={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},dS={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function $T(e,t={}){const{dir:a="ltr",orientation:i="horizontal"}=t;let l=e.key;return l=UT[l]??l,a==="rtl"&&i==="horizontal"&&l in dS&&(l=dS[l]),l}function HT(e){return e.nativeEvent??e}var BT=new Set(["PageUp","PageDown"]),FT=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]);function WT(e){return e.ctrlKey||e.metaKey?.1:BT.has(e.key)||e.shiftKey&&FT.has(e.key)?10:1}function Wf(e,t="client"){const a=PT(e)?e.touches[0]||e.changedTouches[0]:e;return{x:a[`${t}X`],y:a[`${t}Y`]}}var rn=(e,t,a,i)=>{const l=typeof e=="function"?e():e;return l?.addEventListener(t,a,i),()=>{l?.removeEventListener(t,a,i)}};function ZC(e,t){const{type:a="HTMLInputElement",property:i="value"}=t,l=xn(e)[a].prototype;return Object.getOwnPropertyDescriptor(l,i)??{}}function GT(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function ul(e,t,a="value"){if(!e)return;const i=GT(e);i&&ZC(e,{type:i,property:a}).set?.call(e,t),e.setAttribute(a,t)}function QC(e,t){if(!e)return;ZC(e,{type:"HTMLInputElement",property:"checked"}).set?.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked")}function O0(e,t){const{value:a,bubbles:i=!0}=t;if(!e)return;const l=xn(e);e instanceof l.HTMLInputElement&&(ul(e,`${a}`),e.dispatchEvent(new l.Event("input",{bubbles:i})))}function qT(e,t){const{checked:a,bubbles:i=!0}=t;if(!e)return;const l=xn(e);e instanceof l.HTMLInputElement&&(QC(e,a),e.dispatchEvent(new l.Event("click",{bubbles:i})))}function YT(e){return XT(e)?e.form:e.closest("form")}function XT(e){return e.matches("textarea, input, select, button")}function KT(e,t){if(!e)return;const a=YT(e),i=l=>{l.defaultPrevented||t()};return a?.addEventListener("reset",i,{passive:!0}),()=>a?.removeEventListener("reset",i)}function ZT(e,t){const a=e?.closest("fieldset");if(!a)return;t(a.disabled);const i=xn(a),l=new i.MutationObserver(()=>t(a.disabled));return l.observe(a,{attributes:!0,attributeFilter:["disabled"]}),()=>l.disconnect()}function sc(e,t){if(!e)return;const{onFieldsetDisabledChange:a,onFormReset:i}=t,l=[KT(e,i),ZT(e,a)];return()=>l.forEach(c=>c?.())}var QT=e=>pa(e)&&e.tagName==="IFRAME";function JT(e){const t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}var ez=e=>JT(e)<0;function tz(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;const a=t(e);return(a===!0?e.shadowRoot:a)||null}function nz(e,t,a){const i=[...e],l=[...e],c=new Set,d=new Map;e.forEach((p,b)=>d.set(p,b));let h=0;for(;h{d.set(C,S+O)});for(let C=S+v.length;C{d.set(C,S+O)})}l.push(...v)}}return i}var j0="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type";function T0(e){return!pa(e)||e.closest("[inert]")?!1:e.matches(j0)&&mT(e)}function JC(e,t={}){if(!e)return[];const{includeContainer:a,getShadowRoot:i}=t,l=Array.from(e.querySelectorAll(j0));a&&em(e)&&l.unshift(e);const c=[];for(const d of l)if(em(d)){if(QT(d)&&d.contentDocument){const h=d.contentDocument.body;c.push(...JC(h,{getShadowRoot:i}));continue}c.push(d)}if(i){const d=nz(c,i,em);return!d.length&&a?l:d}return!c.length&&a?l:c}function em(e){return pa(e)&&e.tabIndex>0?!0:T0(e)&&!ez(e)}function z0(e){const{root:t,getInitialEl:a,filter:i,enabled:l=!0}=e;if(!l)return;let c=null;if(c||(c=typeof a=="function"?a():a),c||(c=t?.querySelector("[data-autofocus],[autofocus]")),!c){const d=JC(t);c=i?d.filter(i)[0]:d[0]}return c||t||void 0}var az=class eE{constructor(){Zp(this,"id",null),Zp(this,"fn_cleanup"),Zp(this,"cleanup",()=>{this.cancel()})}static create(){return new eE}request(t){this.cancel(),this.id=globalThis.requestAnimationFrame(()=>{this.id=null,this.fn_cleanup=t?.()})}cancel(){this.id!==null&&(globalThis.cancelAnimationFrame(this.id),this.id=null),this.fn_cleanup?.(),this.fn_cleanup=void 0}isActive(){return this.id!==null}};function Ye(e){const t=az.create();return t.request(e),t.cleanup}function tE(e){const t=new Set;function a(i){const l=globalThis.requestAnimationFrame(i);t.add(()=>globalThis.cancelAnimationFrame(l))}return a(()=>a(e)),function(){t.forEach(l=>l())}}function rz(e,t,a){const i=Ye(()=>{e.removeEventListener(t,l,!0),a()}),l=()=>{i(),a()};return e.addEventListener(t,l,{once:!0,capture:!0}),i}function iz(e,t){if(!e)return;const{attributes:a,callback:i}=t,l=e.ownerDocument.defaultView||window,c=new l.MutationObserver(d=>{for(const h of d)h.type==="attributes"&&h.attributeName&&a.includes(h.attributeName)&&i(h)});return c.observe(e,{attributes:!0,attributeFilter:a}),()=>c.disconnect()}function Uu(e,t){const{defer:a}=t,i=a?Ye:c=>c(),l=[];return l.push(i(()=>{const c=typeof e=="function"?e():e;l.push(iz(c,t))})),()=>{l.forEach(c=>c?.())}}function nE(e){const t=()=>{const a=xn(e);e.dispatchEvent(new a.MouseEvent("click"))};AT()?rz(e,"keyup",t):queueMicrotask(t)}function Gf(e){const t=yT(e);return fT(t)?li(t).body:pa(t)&&_0(t)?t:Gf(t)}function aE(e,t=[]){const a=Gf(e),i=a===e.ownerDocument.body,l=xn(a);return i?t.concat(l,l.visualViewport||[],_0(a)?a:[]):t.concat(a,aE(a,[]))}var oz=/auto|scroll|overlay|hidden|clip/,lz=new Set(["inline","contents"]);function _0(e){const t=xn(e),{overflow:a,overflowX:i,overflowY:l,display:c}=t.getComputedStyle(e);return oz.test(a+l+i)&&!lz.has(c)}function sz(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Iu(e,t){const{rootEl:a,...i}=t||{};!e||!a||!_0(a)||!sz(a)||e.scrollIntoView(i)}function A0(e,t){const{left:a,top:i,width:l,height:c}=t.getBoundingClientRect(),d={x:e.x-a,y:e.y-i},h={x:sS(d.x/l),y:sS(d.y/c)};function p(b={}){const{dir:v="ltr",orientation:x="horizontal",inverted:S}=b,C=typeof S=="object"?S.x:S,O=typeof S=="object"?S.y:S;return x==="horizontal"?v==="rtl"||C?1-h.x:h.x:O?1-h.y:h.y}return{offset:d,percent:h,getPercentValue:p}}function cz(e,t){const a=e.body,i="pointerLockElement"in e||"mozPointerLockElement"in e,l=()=>!!e.pointerLockElement;function c(){}function d(p){l(),console.error("PointerLock error occurred:",p),e.exitPointerLock()}if(!i)return;try{a.requestPointerLock()}catch{}const h=[rn(e,"pointerlockchange",c,!1),rn(e,"pointerlockerror",d,!1)];return()=>{h.forEach(p=>p()),e.exitPointerLock()}}var $s="default",Mm="",_f=new WeakMap;function uz(e={}){const{target:t,doc:a}=e,i=a??document,l=i.documentElement;return R0()?($s==="default"&&(Mm=l.style.webkitUserSelect,l.style.webkitUserSelect="none"),$s="disabled"):t&&(_f.set(t,t.style.userSelect),t.style.userSelect="none"),()=>dz({target:t,doc:i})}function dz(e={}){const{target:t,doc:a}=e,l=(a??document).documentElement;if(R0()){if($s!=="disabled")return;$s="restoring",setTimeout(()=>{tE(()=>{$s==="restoring"&&(l.style.webkitUserSelect==="none"&&(l.style.webkitUserSelect=Mm||""),Mm="",$s="default")})},300)}else if(t&&_f.has(t)){const c=_f.get(t);t.style.userSelect==="none"&&(t.style.userSelect=c??""),t.getAttribute("style")===""&&t.removeAttribute("style"),_f.delete(t)}}function rE(e={}){const{defer:t,target:a,...i}=e,l=t?Ye:d=>d(),c=[];return c.push(l(()=>{const d=typeof a=="function"?a():a;c.push(uz({...i,target:d}))})),()=>{c.forEach(d=>d?.())}}function iE(e,t){const{onPointerMove:a,onPointerUp:i}=t,l=h=>{const p=Wf(h),b=Math.sqrt(p.x**2+p.y**2),v=h.pointerType==="touch"?10:5;if(!(b{const p=Wf(h);i({point:p,event:h})},d=[rn(e,"pointermove",l,!1),rn(e,"pointerup",c,!1),rn(e,"pointercancel",c,!1),rn(e,"contextmenu",c,!1),rE({doc:e})];return()=>{d.forEach(h=>h())}}function fz(e){const{pointerNode:t,keyboardNode:a=t,onPress:i,onPressStart:l,onPressEnd:c,isValidKey:d=_=>_.key==="Enter"}=e;if(!t)return vu;const h=xn(t);let p=vu,b=vu,v=vu;const x=_=>({point:Wf(_),event:_});function S(_){l?.(x(_))}function C(_){c?.(x(_))}const w=rn(t,"pointerdown",_=>{b();const M=rn(h,"pointerup",V=>{const P=Vi(V);Eo(t,P)?i?.(x(V)):c?.(x(V))},{passive:!i,once:!0}),R=rn(h,"pointercancel",C,{passive:!c,once:!0});b=Qp(M,R),GC(a)&&_.pointerType==="mouse"&&_.preventDefault(),S(_)},{passive:!l}),T=rn(a,"focus",A);p=Qp(w,T);function A(){const _=V=>{if(!d(V))return;const P=B=>{if(!d(B))return;const W=new h.PointerEvent("pointerup"),Y=x(W);i?.(Y),c?.(Y)};b(),b=rn(a,"keyup",P);const F=new h.PointerEvent("pointerdown");S(F)},I=()=>{const V=new h.PointerEvent("pointercancel");C(V)},M=rn(a,"keydown",_),R=rn(a,"blur",I);v=Qp(M,R)}return()=>{p(),b(),v()}}function Ql(e,t){return Array.from(e?.querySelectorAll(t)??[])}function hz(e,t){return e?.querySelector(t)??null}var I0=e=>e.id;function gz(e,t,a=I0){return e.find(i=>a(i)===t)}function hh(e,t,a=I0){const i=gz(e,t,a);return i?e.indexOf(i):-1}function oE(e,t,a=!0){let i=hh(e,t);return i=a?(i+1)%e.length:Math.min(i+1,e.length-1),e[i]}function lE(e,t,a=!0){let i=hh(e,t);return i===-1?a?e[e.length-1]:null:(i=a?(i-1+e.length)%e.length:Math.max(0,i-1),e[i])}function pz(e){const t=new WeakMap;let a;const i=new WeakMap,l=h=>a||(a=new h.ResizeObserver(p=>{for(const b of p){i.set(b.target,b);const v=t.get(b.target);if(v)for(const x of v)x(b)}}),a);return{observe:(h,p)=>{let b=t.get(h)||new Set;b.add(p),t.set(h,b);const v=xn(h);return l(v).observe(h,e),()=>{const x=t.get(h);x&&(x.delete(p),x.size===0&&(t.delete(h),l(v).unobserve(h)))}},unobserve:h=>{t.delete(h),a?.unobserve(h)}}}var mz=pz({box:"border-box"}),bz=e=>e.split("").map(t=>{const a=t.charCodeAt(0);return a>0&&a<128?t:a>=128&&a<=255?`/x${a.toString(16)}`.replace("/","\\"):""}).join("").trim(),vz=e=>bz(e.dataset?.valuetext??e.textContent??""),xz=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function yz(e,t,a,i=I0){const l=a?hh(e,a,i):-1;let c=a?iT(e,l):e;return t.length===1&&(c=c.filter(h=>i(h)!==a)),c.find(h=>xz(vz(h),t))}function Sz(e,t){if(!e)return vu;const a=Object.keys(t).reduce((i,l)=>(i[l]=e.style.getPropertyValue(l),i),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,a),e.style.length===0&&e.removeAttribute("style")}}function Cz(e,t){const{state:a,activeId:i,key:l,timeout:c=350,itemToId:d}=t,h=a.keysSoFar+l,b=h.length>1&&Array.from(h).every(O=>O===h[0])?h[0]:h;let v=e.slice();const x=yz(v,b,i,d);function S(){clearTimeout(a.timer),a.timer=-1}function C(O){a.keysSoFar=O,S(),O!==""&&(a.timer=+setTimeout(()=>{C(""),S()},c))}return C(h),x}var Js=Object.assign(Cz,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:Ez});function Ez(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var wz={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"};function kz(e,t,a){const{signal:i}=t;return[new Promise((d,h)=>{const p=setTimeout(()=>{h(new Error(`Timeout of ${a}ms exceeded`))},a);i.addEventListener("abort",()=>{clearTimeout(p),h(new Error("Promise aborted"))}),e.then(b=>{i.aborted||(clearTimeout(p),d(b))}).catch(b=>{i.aborted||(clearTimeout(p),h(b))})}),()=>t.abort()]}function Rz(e,t){const{timeout:a,rootNode:i}=t,l=xn(i),c=li(i),d=new l.AbortController;return kz(new Promise(h=>{const p=e();if(p){h(p);return}const b=new l.MutationObserver(()=>{const v=e();v&&v.isConnected&&(b.disconnect(),h(v))});b.observe(c.body,{childList:!0,subtree:!0})}),d,a)}var Oz=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),jz=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,fS=e=>{const t={};let a;for(;a=jz.exec(e);)t[a[1]]=a[2];return t},Tz=(e,t)=>{if(zf(e)){if(zf(t))return`${e};${t}`;e=fS(e)}else zf(t)&&(t=fS(t));return Object.assign({},e??{},t??{})};function On(...e){let t={};for(let a of e){if(!a)continue;for(let l in t){if(l.startsWith("on")&&typeof t[l]=="function"&&typeof a[l]=="function"){t[l]=zu(a[l],t[l]);continue}if(l==="className"||l==="class"){t[l]=Oz(t[l],a[l]);continue}if(l==="style"){t[l]=Tz(t[l],a[l]);continue}t[l]=a[l]!==void 0?a[l]:t[l]}for(let l in a)t[l]===void 0&&(t[l]=a[l]);const i=Object.getOwnPropertySymbols(a);for(let l of i)t[l]=a[l]}return t}function Dm(e,t,a){let i=[],l;return c=>{const d=e(c);return(d.length!==i.length||d.some((p,b)=>!ka(i[b],p)))&&(i=d,l=t(d,c)),l}}function Di(){return{and:(...e)=>function(a){return e.every(i=>a.guard(i))},or:(...e)=>function(a){return e.some(i=>a.guard(i))},not:e=>function(a){return!a.guard(e)}}}function N0(){return{guards:Di(),createMachine:e=>e,choose:e=>function({choose:a}){return a(e)?.actions}}}var Ds=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Ds||{}),tm="__init__";function zz(e){const t=()=>e.getRootNode?.()??document,a=()=>li(t());return{...e,getRootNode:t,getDoc:a,getWin:()=>a().defaultView??window,getActiveElement:()=>qC(t()),isActiveElement:GC,getById:d=>t().getElementById(d)}}function _z(...e){return t=>{const a=[];for(const i of e)if(typeof i=="function"){const l=i(t);typeof l=="function"&&a.push(l)}else i&&(i.current=t);if(a.length)return()=>{for(const i of a)i()}}}function Az(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}const nm=e=>{const t=m.memo(m.forwardRef((a,i)=>{const{asChild:l,children:c,...d}=a;if(!l)return m.createElement(e,{...d,ref:i},c);if(!m.isValidElement(c))return null;const h=m.Children.only(c),p=Az(h);return m.cloneElement(h,{...On(d,h.props),ref:i?_z(i,p):p})}));return t.displayName=e.displayName||e.name,t},Iz=()=>{const e=new Map;return new Proxy(nm,{apply(t,a,i){return nm(i[0])},get(t,a){const i=a;return e.has(i)||e.set(i,nm(i)),e.get(i)}})},Nn=Iz(),[WU,sE]=gl({name:"LocaleContext",hookName:"useLocaleContext",providerName:"",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),{withContext:Nz}=jo({key:"heading"}),Ys=Nz("h2");Ys.displayName="Heading";const as=()=>(e,t)=>t.reduce((a,i)=>{const[l,c]=a,d=i;return c[d]!==void 0&&(l[d]=c[d]),delete c[d],[l,c]},[{},{...e}]);function Vz(e){return new Proxy({},{get(t,a){return a==="style"?i=>e({style:i}).style:e}})}var Me=()=>e=>Array.from(new Set(e)),V0=bC(),cE=typeof globalThis.document<"u"?m.useLayoutEffect:m.useEffect;function qf(e){const t=e().value??e().defaultValue,a=e().isEqual??Object.is,[i]=m.useState(t),[l,c]=m.useState(i),d=e().value!==void 0,h=m.useRef(l);h.current=d?e().value:l;const p=m.useRef(h.current);cE(()=>{p.current=h.current},[l,e().value]);const b=x=>{const S=p.current,C=ll(x)?x(S):x;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:C,prev:S}),d||c(C),a(C,S)||e().onChange?.(C,S)};function v(){return d?e().value:l}return{initial:i,ref:h,get:v,set(x){(e().sync?V0.flushSync:Lj)(()=>b(x))},invoke(x,S){e().onChange?.(x,S)},hash(x){return e().hash?.(x)??String(x)}}}qf.cleanup=e=>{m.useEffect(()=>e,[])};qf.ref=e=>{const t=m.useRef(e);return{get:()=>t.current,set:a=>{t.current=a}}};function Lz(e){const t=m.useRef(e);return{get(a){return t.current[a]},set(a,i){t.current[a]=i}}}var Mz=(e,t)=>{const a=m.useRef(!1),i=m.useRef(!1);m.useEffect(()=>{if(a.current&&i.current)return t();i.current=!0},[...(e??[]).map(l=>typeof l=="function"?l():l)]),m.useEffect(()=>(a.current=!0,()=>{a.current=!1}),[])};function uE(e,t={}){const a=m.useMemo(()=>{const{id:Y,ids:U,getRootNode:be}=t;return zz({id:Y,ids:U,getRootNode:be})},[t]),i=(...Y)=>{e.debug&&console.log(...Y)},l=e.props?.({props:E0(t),scope:a})??t,c=Dz(l),d=e.context?.({prop:c,bindable:qf,scope:a,flush:hS,getContext(){return p},getComputed(){return R},getRefs(){return w},getEvent(){return C()}}),h=dE(d),p={get(Y){return h.current?.[Y].ref.current},set(Y,U){h.current?.[Y].set(U)},initial(Y){return h.current?.[Y].initial},hash(Y){const U=h.current?.[Y].get();return h.current?.[Y].hash(U)}},b=m.useRef(new Map),v=m.useRef(null),x=m.useRef(null),S=m.useRef({type:""}),C=()=>({...S.current,current(){return S.current},previous(){return x.current}}),O=()=>({...V,matches(...Y){return Y.includes(V.ref.current)},hasTag(Y){return!!e.states[V.ref.current]?.tags?.includes(Y)}}),w=Lz(e.refs?.({prop:c,context:p})??{}),T=()=>({state:O(),context:p,event:C(),prop:c,send:W,action:A,guard:_,track:Mz,refs:w,computed:R,flush:hS,scope:a,choose:M}),A=Y=>{const U=ll(Y)?Y(T()):Y;if(!U)return;const be=U.map(de=>{const ve=e.implementations?.actions?.[de];return ve||Au(`[zag-js] No implementation found for action "${JSON.stringify(de)}"`),ve});for(const de of be)de?.(T())},_=Y=>ll(Y)?Y(T()):e.implementations?.guards?.[Y](T()),I=Y=>{const U=ll(Y)?Y(T()):Y;if(!U)return;const be=U.map(ve=>{const N=e.implementations?.effects?.[ve];return N||Au(`[zag-js] No implementation found for effect "${JSON.stringify(ve)}"`),N}),de=[];for(const ve of be){const N=ve?.(T());N&&de.push(N)}return()=>de.forEach(ve=>ve?.())},M=Y=>Tf(Y).find(U=>{let be=!U.guard;return zf(U.guard)?be=!!_(U.guard):ll(U.guard)&&(be=U.guard(T())),be}),R=Y=>{BC(e.computed,()=>"[zag-js] No computed object found on machine");const U=e.computed[Y];return U({context:p,event:C(),prop:c,refs:w,scope:a,computed:R})},V=qf(()=>({defaultValue:e.initialState({prop:c}),onChange(Y,U){U&&(b.current.get(U)?.(),b.current.delete(U)),U&&A(e.states[U]?.exit),A(v.current?.actions);const be=I(e.states[Y]?.effects);if(be&&b.current.set(Y,be),U===tm){A(e.entry);const de=I(e.effects);de&&b.current.set(tm,de)}A(e.states[Y]?.entry)}})),P=m.useRef(void 0),F=m.useRef(Ds.NotStarted);cE(()=>{queueMicrotask(()=>{const be=F.current===Ds.Started;F.current=Ds.Started,i(be?"rehydrating...":"initializing...");const de=P.current??V.initial;V.invoke(de,be?V.get():tm)});const Y=b.current,U=V.ref.current;return()=>{i("unmounting..."),P.current=U,F.current=Ds.Stopped,Y.forEach(be=>be?.()),b.current=new Map,v.current=null,queueMicrotask(()=>{A(e.exit)})}},[]);const B=()=>"ref"in V?V.ref.current:V.get(),W=Y=>{queueMicrotask(()=>{if(F.current!==Ds.Started)return;x.current=S.current,S.current=Y;let U=B();const be=e.states[U].on?.[Y.type]??e.on?.[Y.type],de=M(be);if(!de)return;v.current=de;const ve=de.target??U;i("transition",Y.type,de.target||U,`(${de.actions})`);const N=ve!==U;N?V0.flushSync(()=>V.set(ve)):de.reenter&&!N?V.invoke(U,U):A(de.actions??[])})};return e.watch?.(T()),{state:O(),send:W,context:p,prop:c,scope:a,refs:w,computed:R,event:C(),getStatus:()=>F.current}}function dE(e){const t=m.useRef(e);return t.current=e,t}function Dz(e){const t=dE(e);return function(i){return t.current[i]}}function hS(e){queueMicrotask(()=>{V0.flushSync(()=>e())})}var fE=Vz(e=>e);function Pz(e,t={}){const{sync:a=!1}=t,i=Uz(e);return m.useCallback((...l)=>a?queueMicrotask(()=>i.current?.(...l)):i.current?.(...l),[a,i])}function Uz(e){const t=m.useRef(e);return t.current=e,t}const xu=Kt("span");xu.displayName="Span";const{withContext:$z}=jo({key:"text"}),z=$z("p");z.displayName="Text";var He=(e,t=[])=>({parts:(...a)=>{if(Hz(t))return He(e,a);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...a)=>He(e,[...t,...a]),omit:(...a)=>He(e,t.filter(i=>!a.includes(i))),rename:a=>He(a,t),keys:()=>t,build:()=>[...new Set(t)].reduce((a,i)=>Object.assign(a,{[i]:{selector:[`&[data-scope="${Ns(e)}"][data-part="${Ns(i)}"]`,`& [data-scope="${Ns(e)}"][data-part="${Ns(i)}"]`].join(", "),attrs:{"data-scope":Ns(e),"data-part":Ns(i)}}}),{})}),Ns=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Hz=e=>e.length===0,hE=He("collapsible").parts("root","trigger","content","indicator");hE.build();Me()(["dir","disabled","getRootNode","id","ids","collapsedHeight","collapsedWidth","onExitComplete","onOpenChange","defaultOpen","open"]);var Bz=Object.defineProperty,Fz=(e,t,a)=>t in e?Bz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,L0=(e,t,a)=>Fz(e,t+"",a),Wz=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let a in e)if(e[a]!==t[a])return!1;return!0},M0=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){const a=t??this.getChannelValue(e),{minValue:i,maxValue:l}=this.getChannelRange(e);return ch(a,i,l)}getChannelPercentValue(e,t){const{minValue:a,maxValue:i,step:l}=this.getChannelRange(e),c=C0(t,a,i,l);return _u(c,a,i,l)}withChannelValue(e,t){const{minValue:a,maxValue:i}=this.getChannelRange(e);if(e in this){let l=this.clone();return l[e]=Bn(t,a,i),l}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:a}=e,i=t||this.getChannels().find(d=>d!==a),l=a||this.getChannels().find(d=>d!==i),c=this.getChannels().find(d=>d!==i&&d!==l);return{xChannel:i,yChannel:l,zChannel:c}}incrementChannel(e,t){const{minValue:a,maxValue:i,step:l}=this.getChannelRange(e),c=_u(Bn(this.getChannelValue(e)+t,a,i),a,i,l);return this.withChannelValue(e,c)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return Wz(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},Gz=/^#[\da-f]+$/i,qz=/^rgba?\((.*)\)$/,Yz=/[^#]/gi,gE=class Af extends M0{constructor(t,a,i,l){super(),this.red=t,this.green=a,this.blue=i,this.alpha=l}static parse(t){let a=[];if(Gz.test(t)&&[4,5,7,9].includes(t.length)){const l=(t.length<6?t.replace(Yz,"$&$&"):t).slice(1).split("");for(;l.length>0;)a.push(parseInt(l.splice(0,2).join(""),16));a[3]=a[3]!==void 0?a[3]/255:void 0}const i=t.match(qz);return i?.[1]&&(a=i[1].split(",").map(l=>Number(l.trim())).map((l,c)=>Bn(l,0,c<3?255:1))),a.length<3?void 0:new Af(a[0],a[1],a[2],a[3]??1)}toString(t){switch(t){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+t)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const t=this.red/255,a=this.green/255,i=this.blue/255,l=Math.min(t,a,i),c=Math.max(t,a,i),d=c-l,h=c===0?0:d/c;let p=0;if(d!==0){switch(c){case t:p=(a-i)/d+(aNumber(h.trim().replace("%","")));return new If(DC(i,360),Bn(l,0,100),Bn(c,0,100),Bn(d??1,0,1))}}toString(t){switch(t){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${Xt(this.saturation,2)}%, ${Xt(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${Xt(this.saturation,2)}%, ${Xt(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+t)}}toHSB(){let t=this.saturation/100,a=this.lightness/100,i=a+t*Math.min(a,1-a);return t=i===0?0:2*(1-a/i),new U0(Xt(this.hue,2),Xt(t*100,2),Xt(i*100,2),Xt(this.alpha,2))}toRGB(){let t=this.hue,a=this.saturation/100,i=this.lightness/100,l=a*Math.min(i,1-i),c=(d,h=(d+t/30)%12)=>i-l*Math.max(Math.min(h-3,9-h,1),-1);return new D0(Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255),Xt(this.alpha,2))}clone(){return new If(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,a){let i=this.getChannelFormatOptions(t),l=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(l/=100),new Intl.NumberFormat(a,i).format(l)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return If.colorChannels}};L0(pE,"colorChannels",["hue","saturation","lightness"]);var P0=pE,Kz=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,mE=class Nf extends M0{constructor(t,a,i,l){super(),this.hue=t,this.saturation=a,this.brightness=i,this.alpha=l}static parse(t){let a;if(a=t.match(Kz)){const[i,l,c,d]=(a[1]??a[2]).split(",").map(h=>Number(h.trim().replace("%","")));return new Nf(DC(i,360),Bn(l,0,100),Bn(c,0,100),Bn(d??1,0,1))}}toString(t){switch(t){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${Xt(this.saturation,2)}%, ${Xt(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${Xt(this.saturation,2)}%, ${Xt(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+t)}}toHSL(){let t=this.saturation/100,a=this.brightness/100,i=a*(1-t/2);return t=i===0||i===1?0:(a-i)/Math.min(i,1-i),new P0(Xt(this.hue,2),Xt(t*100,2),Xt(i*100,2),Xt(this.alpha,2))}toRGB(){let t=this.hue,a=this.saturation/100,i=this.brightness/100,l=(c,d=(c+t/60)%6)=>i-a*i*Math.max(Math.min(d,4-d,1),0);return new D0(Math.round(l(5)*255),Math.round(l(3)*255),Math.round(l(1)*255),Xt(this.alpha,2))}clone(){return new Nf(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,a){let i=this.getChannelFormatOptions(t),l=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(l/=100),new Intl.NumberFormat(a,i).format(l)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return Nf.colorChannels}};L0(mE,"colorChannels",["hue","saturation","brightness"]);var U0=mE,Zz="aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32",Qz=e=>{const t=new Map,a=e.split(",");for(let i=0;i{if(gS.has(e))return Yf(gS.get(e));const t=D0.parse(e)||U0.parse(e)||P0.parse(e);if(!t){const a=new Error("Invalid color value: "+e);throw Error.captureStackTrace?.(a,Yf),a}return t};const Jz=["top","right","bottom","left"],dl=Math.min,ur=Math.max,Xf=Math.round,uf=Math.floor,Ni=e=>({x:e,y:e}),e_={left:"right",right:"left",bottom:"top",top:"bottom"},t_={start:"end",end:"start"};function Pm(e,t,a){return ur(e,dl(t,a))}function ko(e,t){return typeof e=="function"?e(t):e}function Ro(e){return e.split("-")[0]}function cc(e){return e.split("-")[1]}function $0(e){return e==="x"?"y":"x"}function H0(e){return e==="y"?"height":"width"}const n_=new Set(["top","bottom"]);function Ai(e){return n_.has(Ro(e))?"y":"x"}function B0(e){return $0(Ai(e))}function a_(e,t,a){a===void 0&&(a=!1);const i=cc(e),l=B0(e),c=H0(l);let d=l==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(d=Kf(d)),[d,Kf(d)]}function r_(e){const t=Kf(e);return[Um(e),t,Um(t)]}function Um(e){return e.replace(/start|end/g,t=>t_[t])}const pS=["left","right"],mS=["right","left"],i_=["top","bottom"],o_=["bottom","top"];function l_(e,t,a){switch(e){case"top":case"bottom":return a?t?mS:pS:t?pS:mS;case"left":case"right":return t?i_:o_;default:return[]}}function s_(e,t,a,i){const l=cc(e);let c=l_(Ro(e),a==="start",i);return l&&(c=c.map(d=>d+"-"+l),t&&(c=c.concat(c.map(Um)))),c}function Kf(e){return e.replace(/left|right|bottom|top/g,t=>e_[t])}function c_(e){return{top:0,right:0,bottom:0,left:0,...e}}function bE(e){return typeof e!="number"?c_(e):{top:e,right:e,bottom:e,left:e}}function Zf(e){const{x:t,y:a,width:i,height:l}=e;return{width:i,height:l,top:a,left:t,right:t+i,bottom:a+l,x:t,y:a}}function bS(e,t,a){let{reference:i,floating:l}=e;const c=Ai(t),d=B0(t),h=H0(d),p=Ro(t),b=c==="y",v=i.x+i.width/2-l.width/2,x=i.y+i.height/2-l.height/2,S=i[h]/2-l[h]/2;let C;switch(p){case"top":C={x:v,y:i.y-l.height};break;case"bottom":C={x:v,y:i.y+i.height};break;case"right":C={x:i.x+i.width,y:x};break;case"left":C={x:i.x-l.width,y:x};break;default:C={x:i.x,y:i.y}}switch(cc(t)){case"start":C[d]-=S*(a&&b?-1:1);break;case"end":C[d]+=S*(a&&b?-1:1);break}return C}const u_=async(e,t,a)=>{const{placement:i="bottom",strategy:l="absolute",middleware:c=[],platform:d}=a,h=c.filter(Boolean),p=await(d.isRTL==null?void 0:d.isRTL(t));let b=await d.getElementRects({reference:e,floating:t,strategy:l}),{x:v,y:x}=bS(b,i,p),S=i,C={},O=0;for(let w=0;w({name:"arrow",options:e,async fn(t){const{x:a,y:i,placement:l,rects:c,platform:d,elements:h,middlewareData:p}=t,{element:b,padding:v=0}=ko(e,t)||{};if(b==null)return{};const x=bE(v),S={x:a,y:i},C=B0(l),O=H0(C),w=await d.getDimensions(b),T=C==="y",A=T?"top":"left",_=T?"bottom":"right",I=T?"clientHeight":"clientWidth",M=c.reference[O]+c.reference[C]-S[C]-c.floating[O],R=S[C]-c.reference[C],V=await(d.getOffsetParent==null?void 0:d.getOffsetParent(b));let P=V?V[I]:0;(!P||!await(d.isElement==null?void 0:d.isElement(V)))&&(P=h.floating[I]||c.floating[O]);const F=M/2-R/2,B=P/2-w[O]/2-1,W=dl(x[A],B),Y=dl(x[_],B),U=W,be=P-w[O]-Y,de=P/2-w[O]/2+F,ve=Pm(U,de,be),N=!p.arrow&&cc(l)!=null&&de!==ve&&c.reference[O]/2-(dede<=0)){var Y,U;const de=(((Y=c.flip)==null?void 0:Y.index)||0)+1,ve=P[de];if(ve&&(!(x==="alignment"?_!==Ai(ve):!1)||W.every(oe=>Ai(oe.placement)===_?oe.overflows[0]>0:!0)))return{data:{index:de,overflows:W},reset:{placement:ve}};let N=(U=W.filter(te=>te.overflows[0]<=0).sort((te,oe)=>te.overflows[1]-oe.overflows[1])[0])==null?void 0:U.placement;if(!N)switch(C){case"bestFit":{var be;const te=(be=W.filter(oe=>{if(V){const le=Ai(oe.placement);return le===_||le==="y"}return!0}).map(oe=>[oe.placement,oe.overflows.filter(le=>le>0).reduce((le,Ee)=>le+Ee,0)]).sort((oe,le)=>oe[1]-le[1])[0])==null?void 0:be[0];te&&(N=te);break}case"initialPlacement":N=h;break}if(l!==N)return{reset:{placement:N}}}return{}}}};function vS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xS(e){return Jz.some(t=>e[t]>=0)}const h_=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:a}=t,{strategy:i="referenceHidden",...l}=ko(e,t);switch(i){case"referenceHidden":{const c=await Nu(t,{...l,elementContext:"reference"}),d=vS(c,a.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:xS(d)}}}case"escaped":{const c=await Nu(t,{...l,altBoundary:!0}),d=vS(c,a.floating);return{data:{escapedOffsets:d,escaped:xS(d)}}}default:return{}}}}},vE=new Set(["left","top"]);async function g_(e,t){const{placement:a,platform:i,elements:l}=e,c=await(i.isRTL==null?void 0:i.isRTL(l.floating)),d=Ro(a),h=cc(a),p=Ai(a)==="y",b=vE.has(d)?-1:1,v=c&&p?-1:1,x=ko(t,e);let{mainAxis:S,crossAxis:C,alignmentAxis:O}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return h&&typeof O=="number"&&(C=h==="end"?O*-1:O),p?{x:C*v,y:S*b}:{x:S*b,y:C*v}}const p_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,i;const{x:l,y:c,placement:d,middlewareData:h}=t,p=await g_(t,e);return d===((a=h.offset)==null?void 0:a.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:l+p.x,y:c+p.y,data:{...p,placement:d}}}}},m_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:i,placement:l}=t,{mainAxis:c=!0,crossAxis:d=!1,limiter:h={fn:T=>{let{x:A,y:_}=T;return{x:A,y:_}}},...p}=ko(e,t),b={x:a,y:i},v=await Nu(t,p),x=Ai(Ro(l)),S=$0(x);let C=b[S],O=b[x];if(c){const T=S==="y"?"top":"left",A=S==="y"?"bottom":"right",_=C+v[T],I=C-v[A];C=Pm(_,C,I)}if(d){const T=x==="y"?"top":"left",A=x==="y"?"bottom":"right",_=O+v[T],I=O-v[A];O=Pm(_,O,I)}const w=h.fn({...t,[S]:C,[x]:O});return{...w,data:{x:w.x-a,y:w.y-i,enabled:{[S]:c,[x]:d}}}}}},b_=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:a,y:i,placement:l,rects:c,middlewareData:d}=t,{offset:h=0,mainAxis:p=!0,crossAxis:b=!0}=ko(e,t),v={x:a,y:i},x=Ai(l),S=$0(x);let C=v[S],O=v[x];const w=ko(h,t),T=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(p){const I=S==="y"?"height":"width",M=c.reference[S]-c.floating[I]+T.mainAxis,R=c.reference[S]+c.reference[I]-T.mainAxis;CR&&(C=R)}if(b){var A,_;const I=S==="y"?"width":"height",M=vE.has(Ro(l)),R=c.reference[x]-c.floating[I]+(M&&((A=d.offset)==null?void 0:A[x])||0)+(M?0:T.crossAxis),V=c.reference[x]+c.reference[I]+(M?0:((_=d.offset)==null?void 0:_[x])||0)-(M?T.crossAxis:0);OV&&(O=V)}return{[S]:C,[x]:O}}}},v_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a,i;const{placement:l,rects:c,platform:d,elements:h}=t,{apply:p=()=>{},...b}=ko(e,t),v=await Nu(t,b),x=Ro(l),S=cc(l),C=Ai(l)==="y",{width:O,height:w}=c.floating;let T,A;x==="top"||x==="bottom"?(T=x,A=S===(await(d.isRTL==null?void 0:d.isRTL(h.floating))?"start":"end")?"left":"right"):(A=x,T=S==="end"?"top":"bottom");const _=w-v.top-v.bottom,I=O-v.left-v.right,M=dl(w-v[T],_),R=dl(O-v[A],I),V=!t.middlewareData.shift;let P=M,F=R;if((a=t.middlewareData.shift)!=null&&a.enabled.x&&(F=I),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(P=_),V&&!S){const W=ur(v.left,0),Y=ur(v.right,0),U=ur(v.top,0),be=ur(v.bottom,0);C?F=O-2*(W!==0||Y!==0?W+Y:ur(v.left,v.right)):P=w-2*(U!==0||be!==0?U+be:ur(v.top,v.bottom))}await p({...t,availableWidth:F,availableHeight:P});const B=await d.getDimensions(h.floating);return O!==B.width||w!==B.height?{reset:{rects:!0}}:{}}}};function gh(){return typeof window<"u"}function uc(e){return xE(e)?(e.nodeName||"").toLowerCase():"#document"}function gr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pi(e){var t;return(t=(xE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xE(e){return gh()?e instanceof Node||e instanceof gr(e).Node:!1}function ri(e){return gh()?e instanceof Element||e instanceof gr(e).Element:!1}function Li(e){return gh()?e instanceof HTMLElement||e instanceof gr(e).HTMLElement:!1}function yS(e){return!gh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof gr(e).ShadowRoot}const x_=new Set(["inline","contents"]);function $u(e){const{overflow:t,overflowX:a,overflowY:i,display:l}=ii(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+a)&&!x_.has(l)}const y_=new Set(["table","td","th"]);function S_(e){return y_.has(uc(e))}const C_=[":popover-open",":modal"];function ph(e){return C_.some(t=>{try{return e.matches(t)}catch{return!1}})}const E_=["transform","translate","scale","rotate","perspective"],w_=["transform","translate","scale","rotate","perspective","filter"],k_=["paint","layout","strict","content"];function F0(e){const t=W0(),a=ri(e)?ii(e):e;return E_.some(i=>a[i]?a[i]!=="none":!1)||(a.containerType?a.containerType!=="normal":!1)||!t&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!t&&(a.filter?a.filter!=="none":!1)||w_.some(i=>(a.willChange||"").includes(i))||k_.some(i=>(a.contain||"").includes(i))}function R_(e){let t=fl(e);for(;Li(t)&&!ec(t);){if(F0(t))return t;if(ph(t))return null;t=fl(t)}return null}function W0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const O_=new Set(["html","body","#document"]);function ec(e){return O_.has(uc(e))}function ii(e){return gr(e).getComputedStyle(e)}function mh(e){return ri(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fl(e){if(uc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yS(e)&&e.host||Pi(e);return yS(t)?t.host:t}function yE(e){const t=fl(e);return ec(t)?e.ownerDocument?e.ownerDocument.body:e.body:Li(t)&&$u(t)?t:yE(t)}function Vu(e,t,a){var i;t===void 0&&(t=[]),a===void 0&&(a=!0);const l=yE(e),c=l===((i=e.ownerDocument)==null?void 0:i.body),d=gr(l);if(c){const h=$m(d);return t.concat(d,d.visualViewport||[],$u(l)?l:[],h&&a?Vu(h):[])}return t.concat(l,Vu(l,[],a))}function $m(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function SE(e){const t=ii(e);let a=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const l=Li(e),c=l?e.offsetWidth:a,d=l?e.offsetHeight:i,h=Xf(a)!==c||Xf(i)!==d;return h&&(a=c,i=d),{width:a,height:i,$:h}}function G0(e){return ri(e)?e:e.contextElement}function Xs(e){const t=G0(e);if(!Li(t))return Ni(1);const a=t.getBoundingClientRect(),{width:i,height:l,$:c}=SE(t);let d=(c?Xf(a.width):a.width)/i,h=(c?Xf(a.height):a.height)/l;return(!d||!Number.isFinite(d))&&(d=1),(!h||!Number.isFinite(h))&&(h=1),{x:d,y:h}}const j_=Ni(0);function CE(e){const t=gr(e);return!W0()||!t.visualViewport?j_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function T_(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==gr(e)?!1:t}function Jl(e,t,a,i){t===void 0&&(t=!1),a===void 0&&(a=!1);const l=e.getBoundingClientRect(),c=G0(e);let d=Ni(1);t&&(i?ri(i)&&(d=Xs(i)):d=Xs(e));const h=T_(c,a,i)?CE(c):Ni(0);let p=(l.left+h.x)/d.x,b=(l.top+h.y)/d.y,v=l.width/d.x,x=l.height/d.y;if(c){const S=gr(c),C=i&&ri(i)?gr(i):i;let O=S,w=$m(O);for(;w&&i&&C!==O;){const T=Xs(w),A=w.getBoundingClientRect(),_=ii(w),I=A.left+(w.clientLeft+parseFloat(_.paddingLeft))*T.x,M=A.top+(w.clientTop+parseFloat(_.paddingTop))*T.y;p*=T.x,b*=T.y,v*=T.x,x*=T.y,p+=I,b+=M,O=gr(w),w=$m(O)}}return Zf({width:v,height:x,x:p,y:b})}function bh(e,t){const a=mh(e).scrollLeft;return t?t.left+a:Jl(Pi(e)).left+a}function EE(e,t){const a=e.getBoundingClientRect(),i=a.left+t.scrollLeft-bh(e,a),l=a.top+t.scrollTop;return{x:i,y:l}}function z_(e){let{elements:t,rect:a,offsetParent:i,strategy:l}=e;const c=l==="fixed",d=Pi(i),h=t?ph(t.floating):!1;if(i===d||h&&c)return a;let p={scrollLeft:0,scrollTop:0},b=Ni(1);const v=Ni(0),x=Li(i);if((x||!x&&!c)&&((uc(i)!=="body"||$u(d))&&(p=mh(i)),Li(i))){const C=Jl(i);b=Xs(i),v.x=C.x+i.clientLeft,v.y=C.y+i.clientTop}const S=d&&!x&&!c?EE(d,p):Ni(0);return{width:a.width*b.x,height:a.height*b.y,x:a.x*b.x-p.scrollLeft*b.x+v.x+S.x,y:a.y*b.y-p.scrollTop*b.y+v.y+S.y}}function __(e){return Array.from(e.getClientRects())}function A_(e){const t=Pi(e),a=mh(e),i=e.ownerDocument.body,l=ur(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),c=ur(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let d=-a.scrollLeft+bh(e);const h=-a.scrollTop;return ii(i).direction==="rtl"&&(d+=ur(t.clientWidth,i.clientWidth)-l),{width:l,height:c,x:d,y:h}}const SS=25;function I_(e,t){const a=gr(e),i=Pi(e),l=a.visualViewport;let c=i.clientWidth,d=i.clientHeight,h=0,p=0;if(l){c=l.width,d=l.height;const v=W0();(!v||v&&t==="fixed")&&(h=l.offsetLeft,p=l.offsetTop)}const b=bh(i);if(b<=0){const v=i.ownerDocument,x=v.body,S=getComputedStyle(x),C=v.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,O=Math.abs(i.clientWidth-x.clientWidth-C);O<=SS&&(c-=O)}else b<=SS&&(c+=b);return{width:c,height:d,x:h,y:p}}const N_=new Set(["absolute","fixed"]);function V_(e,t){const a=Jl(e,!0,t==="fixed"),i=a.top+e.clientTop,l=a.left+e.clientLeft,c=Li(e)?Xs(e):Ni(1),d=e.clientWidth*c.x,h=e.clientHeight*c.y,p=l*c.x,b=i*c.y;return{width:d,height:h,x:p,y:b}}function CS(e,t,a){let i;if(t==="viewport")i=I_(e,a);else if(t==="document")i=A_(Pi(e));else if(ri(t))i=V_(t,a);else{const l=CE(e);i={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return Zf(i)}function wE(e,t){const a=fl(e);return a===t||!ri(a)||ec(a)?!1:ii(a).position==="fixed"||wE(a,t)}function L_(e,t){const a=t.get(e);if(a)return a;let i=Vu(e,[],!1).filter(h=>ri(h)&&uc(h)!=="body"),l=null;const c=ii(e).position==="fixed";let d=c?fl(e):e;for(;ri(d)&&!ec(d);){const h=ii(d),p=F0(d);!p&&h.position==="fixed"&&(l=null),(c?!p&&!l:!p&&h.position==="static"&&!!l&&N_.has(l.position)||$u(d)&&!p&&wE(e,d))?i=i.filter(v=>v!==d):l=h,d=fl(d)}return t.set(e,i),i}function M_(e){let{element:t,boundary:a,rootBoundary:i,strategy:l}=e;const d=[...a==="clippingAncestors"?ph(t)?[]:L_(t,this._c):[].concat(a),i],h=d[0],p=d.reduce((b,v)=>{const x=CS(t,v,l);return b.top=ur(x.top,b.top),b.right=dl(x.right,b.right),b.bottom=dl(x.bottom,b.bottom),b.left=ur(x.left,b.left),b},CS(t,h,l));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function D_(e){const{width:t,height:a}=SE(e);return{width:t,height:a}}function P_(e,t,a){const i=Li(t),l=Pi(t),c=a==="fixed",d=Jl(e,!0,c,t);let h={scrollLeft:0,scrollTop:0};const p=Ni(0);function b(){p.x=bh(l)}if(i||!i&&!c)if((uc(t)!=="body"||$u(l))&&(h=mh(t)),i){const C=Jl(t,!0,c,t);p.x=C.x+t.clientLeft,p.y=C.y+t.clientTop}else l&&b();c&&!i&&l&&b();const v=l&&!i&&!c?EE(l,h):Ni(0),x=d.left+h.scrollLeft-p.x-v.x,S=d.top+h.scrollTop-p.y-v.y;return{x,y:S,width:d.width,height:d.height}}function am(e){return ii(e).position==="static"}function ES(e,t){if(!Li(e)||ii(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return Pi(e)===a&&(a=a.ownerDocument.body),a}function kE(e,t){const a=gr(e);if(ph(e))return a;if(!Li(e)){let l=fl(e);for(;l&&!ec(l);){if(ri(l)&&!am(l))return l;l=fl(l)}return a}let i=ES(e,t);for(;i&&S_(i)&&am(i);)i=ES(i,t);return i&&ec(i)&&am(i)&&!F0(i)?a:i||R_(e)||a}const U_=async function(e){const t=this.getOffsetParent||kE,a=this.getDimensions,i=await a(e.floating);return{reference:P_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function $_(e){return ii(e).direction==="rtl"}const H_={convertOffsetParentRelativeRectToViewportRelativeRect:z_,getDocumentElement:Pi,getClippingRect:M_,getOffsetParent:kE,getElementRects:U_,getClientRects:__,getDimensions:D_,getScale:Xs,isElement:ri,isRTL:$_};function RE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function B_(e,t){let a=null,i;const l=Pi(e);function c(){var h;clearTimeout(i),(h=a)==null||h.disconnect(),a=null}function d(h,p){h===void 0&&(h=!1),p===void 0&&(p=1),c();const b=e.getBoundingClientRect(),{left:v,top:x,width:S,height:C}=b;if(h||t(),!S||!C)return;const O=uf(x),w=uf(l.clientWidth-(v+S)),T=uf(l.clientHeight-(x+C)),A=uf(v),I={rootMargin:-O+"px "+-w+"px "+-T+"px "+-A+"px",threshold:ur(0,dl(1,p))||1};let M=!0;function R(V){const P=V[0].intersectionRatio;if(P!==p){if(!M)return d();P?d(!1,P):i=setTimeout(()=>{d(!1,1e-7)},1e3)}P===1&&!RE(b,e.getBoundingClientRect())&&d(),M=!1}try{a=new IntersectionObserver(R,{...I,root:l.ownerDocument})}catch{a=new IntersectionObserver(R,I)}a.observe(e)}return d(!0),c}function F_(e,t,a,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:c=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,b=G0(e),v=l||c?[...b?Vu(b):[],...Vu(t)]:[];v.forEach(A=>{l&&A.addEventListener("scroll",a,{passive:!0}),c&&A.addEventListener("resize",a)});const x=b&&h?B_(b,a):null;let S=-1,C=null;d&&(C=new ResizeObserver(A=>{let[_]=A;_&&_.target===b&&C&&(C.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var I;(I=C)==null||I.observe(t)})),a()}),b&&!p&&C.observe(b),C.observe(t));let O,w=p?Jl(e):null;p&&T();function T(){const A=Jl(e);w&&!RE(w,A)&&a(),w=A,O=requestAnimationFrame(T)}return a(),()=>{var A;v.forEach(_=>{l&&_.removeEventListener("scroll",a),c&&_.removeEventListener("resize",a)}),x?.(),(A=C)==null||A.disconnect(),C=null,p&&cancelAnimationFrame(O)}}const W_=p_,G_=m_,q_=f_,Y_=v_,X_=h_,K_=d_,Z_=b_,Q_=(e,t,a)=>{const i=new Map,l={platform:H_,...a},c={...l.platform,_c:i};return u_(e,t,{...l,platform:c})};function wS(e=0,t=0,a=0,i=0){if(typeof DOMRect=="function")return new DOMRect(e,t,a,i);const l={x:e,y:t,width:a,height:i,top:t,right:e+a,bottom:t+i,left:e};return{...l,toJSON:()=>l}}function J_(e){if(!e)return wS();const{x:t,y:a,width:i,height:l}=e;return wS(t,a,i,l)}function eA(e,t){return{contextElement:pa(e)?e:e?.contextElement,getBoundingClientRect:()=>{const a=e,i=t?.(a);return i||!a?J_(i):a.getBoundingClientRect()}}}var kS=e=>({variable:e,reference:`var(${e})`}),OE={transformOrigin:kS("--transform-origin"),arrowOffset:kS("--arrow-offset")},tA=e=>e==="top"||e==="bottom"?"y":"x";function nA(e,t){return{name:"transformOrigin",fn(a){const{elements:i,middlewareData:l,placement:c,rects:d,y:h}=a,p=c.split("-")[0],b=tA(p),v=l.arrow?.x||0,x=l.arrow?.y||0,S=t?.clientWidth||0,C=t?.clientHeight||0,O=v+S/2,w=x+C/2,T=Math.abs(l.shift?.y||0),A=d.reference.height/2,_=C/2,I=e.offset?.mainAxis??e.gutter,M=typeof I=="number"?I+_:I??_,R=T>M,V={top:`${O}px calc(100% + ${M}px)`,bottom:`${O}px ${-M}px`,left:`calc(100% + ${M}px) ${w}px`,right:`${-M}px ${w}px`}[p],P=`${O}px ${d.reference.y+A-h}px`,F=!!e.overlap&&b==="y"&&R;return i.floating.style.setProperty(OE.transformOrigin.variable,F?P:V),{data:{transformOrigin:F?P:V}}}}}var aA={name:"rects",fn({rects:e}){return{data:e}}},rA=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:a}){if(!a.arrow)return{};const{x:i,y:l}=a.arrow,c=t.split("-")[0];return Object.assign(e.style,{left:i!=null?`${i}px`:"",top:l!=null?`${l}px`:"",[c]:`calc(100% + ${OE.arrowOffset.reference})`}),{}}}};function iA(e){const[t,a]=e.split("-");return{side:t,align:a,hasAlign:a!=null}}function oA(e){return e.split("-")[0]}var lA={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function RS(e,t){const a=e.devicePixelRatio||1;return Math.round(t*a)/a}function q0(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function sA(e,t,a){const i=e||t.createElement("div");return K_({element:i,padding:a.arrowPadding})}function cA(e,t){if(!Tj(t.offset??t.gutter))return W_(({placement:a})=>{const i=(e?.clientHeight||0)/2,l=t.offset?.mainAxis??t.gutter,c=typeof l=="number"?l+i:l??i,{hasAlign:d}=iA(a),h=d?void 0:t.shift,p=t.offset?.crossAxis??h;return E0({crossAxis:p,mainAxis:c,alignmentAxis:t.shift})})}function uA(e){if(!e.flip)return;const t=q0(e.boundary);return q_({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function dA(e){if(!e.slide&&!e.overlap)return;const t=q0(e.boundary);return G_({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Z_()})}function fA(e){return Y_({padding:e.overflowPadding,apply({elements:t,rects:a,availableHeight:i,availableWidth:l}){const c=t.floating,d=Math.round(a.reference.width),h=Math.round(a.reference.height);l=Math.floor(l),i=Math.floor(i),c.style.setProperty("--reference-width",`${d}px`),c.style.setProperty("--reference-height",`${h}px`),c.style.setProperty("--available-width",`${l}px`),c.style.setProperty("--available-height",`${i}px`)}})}function hA(e){if(e.hideWhenDetached)return X_({strategy:"referenceHidden",boundary:q0(e.boundary)??"clippingAncestors"})}function gA(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function pA(e,t,a={}){const i=a.getAnchorElement?.()??e,l=eA(i,a.getAnchorRect);if(!t||!l)return;const c=Object.assign({},lA,a),d=t.querySelector("[data-part=arrow]"),h=[cA(d,c),uA(c),dA(c),sA(d,t.ownerDocument,c),rA(d),nA({gutter:c.gutter,offset:c.offset,overlap:c.overlap},d),fA(c),hA(c),aA],{placement:p,strategy:b,onComplete:v,onPositioned:x}=c,S=async()=>{if(!l||!t)return;const T=await Q_(l,t,{placement:p,middleware:h,strategy:b});v?.(T),x?.({placed:!0});const A=xn(t),_=RS(A,T.x),I=RS(A,T.y);t.style.setProperty("--x",`${_}px`),t.style.setProperty("--y",`${I}px`),c.hideWhenDetached&&(T.middlewareData.hide?.referenceHidden?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const M=t.firstElementChild;if(M){const R=YC(M);t.style.setProperty("--z-index",R.zIndex)}},C=async()=>{a.updatePosition?(await a.updatePosition({updatePosition:S,floatingElement:t}),x?.({placed:!0})):await S()},O=gA(c.listeners),w=c.listeners?F_(l,t,C,O):Mj;return C(),()=>{w?.(),x?.({placed:!1})}}function oi(e,t,a={}){const{defer:i,...l}=a,c=i?Ye:h=>h(),d=[];return d.push(c(()=>{const h=typeof e=="function"?e():e,p=typeof t=="function"?t():t;d.push(pA(h,p,l))})),()=>{d.forEach(h=>h?.())}}function mA(e){const t={each(a){for(let i=0;i{try{c.document.addEventListener(a,i,l)}catch{}}),()=>{try{t.removeEventListener(a,i,l)}catch{}}},removeEventListener(a,i,l){t.each(c=>{try{c.document.removeEventListener(a,i,l)}catch{}})}};return t}function bA(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(a,i,l)=>{try{t?.addEventListener(a,i,l)}catch{}return()=>{try{t?.removeEventListener(a,i,l)}catch{}}},removeEventListener:(a,i,l)=>{try{t?.removeEventListener(a,i,l)}catch{}}}}var OS="pointerdown.outside",jS="focus.outside";function vA(e){for(const t of e)if(pa(t)&&T0(t))return!0;return!1}var jE=e=>"clientY"in e;function xA(e,t){if(!jE(t)||!e)return!1;const a=e.getBoundingClientRect();return a.width===0||a.height===0?!1:a.top<=t.clientY&&t.clientY<=a.top+a.height&&a.left<=t.clientX&&t.clientX<=a.left+a.width}function yA(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function TS(e,t){if(!t||!jE(e))return!1;const a=t.scrollHeight>t.clientHeight,i=a&&e.clientX>t.offsetLeft+t.clientWidth,l=t.scrollWidth>t.clientWidth,c=l&&e.clientY>t.offsetTop+t.clientHeight,d={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(a?16:0),height:t.clientHeight+(l?16:0)},h={x:e.clientX,y:e.clientY};return yA(d,h)?i||c:!1}function SA(e,t){const{exclude:a,onFocusOutside:i,onPointerDownOutside:l,onInteractOutside:c,defer:d,followControlledElements:h=!0}=t;if(!e)return;const p=li(e),b=xn(e),v=mA(b),x=bA(b);function S(I,M){if(!pa(M)||!M.isConnected||Eo(e,M)||xA(e,I)||h&&kT(e,M))return!1;const R=p.querySelector(`[aria-controls="${e.id}"]`);if(R){const P=Gf(R);if(TS(I,P))return!1}const V=Gf(e);return TS(I,V)?!1:!a?.(M)}const C=new Set,O=Qs(e?.getRootNode());function w(I){function M(R){const V=d&&!cS()?Ye:B=>B(),P=R??I,F=P?.composedPath?.()??[P?.target];V(()=>{const B=O?F[0]:Vi(I);if(!(!e||!S(I,B))){if(l||c){const W=zu(l,c);e.addEventListener(OS,W,{once:!0})}zS(e,OS,{bubbles:!1,cancelable:!0,detail:{originalEvent:P,contextmenu:MT(P),focusable:vA(F),target:B}})}})}I.pointerType==="touch"?(C.forEach(R=>R()),C.add(rn(p,"click",M,{once:!0})),C.add(x.addEventListener("click",M,{once:!0})),C.add(v.addEventListener("click",M,{once:!0}))):M()}const T=new Set,A=setTimeout(()=>{T.add(rn(p,"pointerdown",w,!0)),T.add(x.addEventListener("pointerdown",w,!0)),T.add(v.addEventListener("pointerdown",w,!0))},0);function _(I){(d?Ye:R=>R())(()=>{const R=I?.composedPath?.()??[I?.target],V=O?R[0]:Vi(I);if(!(!e||!S(I,V))){if(i||c){const P=zu(i,c);e.addEventListener(jS,P,{once:!0})}zS(e,jS,{bubbles:!1,cancelable:!0,detail:{originalEvent:I,contextmenu:!1,focusable:T0(V),target:V}})}})}return cS()||(T.add(rn(p,"focusin",_,!0)),T.add(x.addEventListener("focusin",_,!0)),T.add(v.addEventListener("focusin",_,!0))),()=>{clearTimeout(A),C.forEach(I=>I()),T.forEach(I=>I())}}function TE(e,t){const{defer:a}=t,i=a?Ye:c=>c(),l=[];return l.push(i(()=>{const c=typeof e=="function"?e():e;l.push(SA(c,t))})),()=>{l.forEach(c=>c?.())}}function zS(e,t,a){const i=e.ownerDocument.defaultView||window,l=new i.CustomEvent(t,a);return e.dispatchEvent(l)}function CA(e,t){const a=i=>{i.key==="Escape"&&(i.isComposing||t?.(i))};return rn(li(e),"keydown",a,{capture:!0})}var _S="layer:request-dismiss",Lr={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){const t=this.indexOf(e),a=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return tt.type===e)},getNestedLayersByType(e,t){const a=this.indexOf(e);return a===-1?[]:this.layers.slice(a+1).filter(i=>i.type===t)},getParentLayerOfType(e,t){const a=this.indexOf(e);if(!(a<=0))return this.layers.slice(0,a).reverse().find(i=>i.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return this.getNestedLayers(e).some(a=>Eo(a.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Eo(t,e))},add(e){this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(tLr.dismiss(i.node,e)),this.layers.splice(t,1),this.syncLayers())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`),e.node.removeAttribute("data-nested"),e.node.removeAttribute("data-has-nested"),this.getParentLayerOfType(e.node,e.type)&&e.node.setAttribute("data-nested",e.type);const i=this.countNestedLayersOfType(e.node,e.type);i>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${i}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const a=this.indexOf(e);if(a===-1)return;const i=this.layers[a];wA(e,_S,l=>{i.requestDismiss?.(l),l.defaultPrevented||i?.dismiss()}),EA(e,_S,{originalLayer:e,targetLayer:t,originalIndex:a,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function EA(e,t,a){const i=e.ownerDocument.defaultView||window,l=new i.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:a});return e.dispatchEvent(l)}function wA(e,t,a){e.addEventListener(t,a,{once:!0})}var AS;function IS(){Lr.layers.forEach(({node:e})=>{e.style.pointerEvents=Lr.isBelowPointerBlockingLayer(e)?"none":"auto"})}function kA(e){e.style.pointerEvents=""}function RA(e,t){const a=li(e),i=[];return Lr.hasPointerBlockingLayer()&&!a.body.hasAttribute("data-inert")&&(AS=document.body.style.pointerEvents,queueMicrotask(()=>{a.body.style.pointerEvents="none",a.body.setAttribute("data-inert","")})),t?.forEach(l=>{const[c,d]=Rz(()=>{const h=l();return pa(h)?h:null},{timeout:1e3});c.then(h=>i.push(Sz(h,{pointerEvents:"auto"}))),i.push(d)}),()=>{Lr.hasPointerBlockingLayer()||(queueMicrotask(()=>{a.body.style.pointerEvents=AS,a.body.removeAttribute("data-inert"),a.body.style.length===0&&a.body.removeAttribute("style")}),i.forEach(l=>l()))}}function OA(e,t){const{warnOnMissingNode:a=!0}=t;if(a&&!e){Au("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:i,onRequestDismiss:l,pointerBlocking:c,exclude:d,debug:h,type:p="dialog"}=t,b={dismiss:i,node:e,type:p,pointerBlocking:c,requestDismiss:l};Lr.add(b),IS();function v(w){const T=Vi(w.detail.originalEvent);Lr.isBelowPointerBlockingLayer(e)||Lr.isInBranch(T)||(t.onPointerDownOutside?.(w),t.onInteractOutside?.(w),!w.defaultPrevented&&(h&&console.log("onPointerDownOutside:",w.detail.originalEvent),i?.()))}function x(w){const T=Vi(w.detail.originalEvent);Lr.isInBranch(T)||(t.onFocusOutside?.(w),t.onInteractOutside?.(w),!w.defaultPrevented&&(h&&console.log("onFocusOutside:",w.detail.originalEvent),i?.()))}function S(w){Lr.isTopMost(e)&&(t.onEscapeKeyDown?.(w),!w.defaultPrevented&&i&&(w.preventDefault(),i()))}function C(w){if(!e)return!1;const T=typeof d=="function"?d():d,A=Array.isArray(T)?T:[T],_=t.persistentElements?.map(I=>I()).filter(pa);return _&&A.push(..._),A.some(I=>Eo(I,w))||Lr.isInNestedLayer(e,w)}const O=[c?RA(e,t.persistentElements):void 0,CA(e,S),TE(e,{exclude:C,onFocusOutside:x,onPointerDownOutside:v,defer:t.defer})];return()=>{Lr.remove(e),IS(),kA(e),O.forEach(w=>w?.())}}function Hu(e,t){const{defer:a}=t,i=a?Ye:c=>c(),l=[];return l.push(i(()=>{const c=ll(e)?e():e;l.push(OA(c,t))})),()=>{l.forEach(c=>c?.())}}var zE=He("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);zE.build();var jA=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,TA=e=>e.ids?.control??`color-picker:${e.id}:control`,zA=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,_A=e=>e.ids?.content??`color-picker:${e.id}:content`,AA=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,IA=e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`,NA=e=>e.ids?.area??`color-picker:${e.id}:area`,VA=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,LA=(e,t)=>e.ids?.channelSliderTrack?.(t)??`color-picker:${e.id}:slider-track:${t}`,MA=(e,t)=>e.ids?.channelSliderThumb?.(t)??`color-picker:${e.id}:slider-thumb:${t}`,Vf=e=>e.getById(_A(e)),DA=e=>e.getById(VA(e)),PA=(e,t)=>e.getById(MA(e,t)),UA=e=>e.getById(IA(e)),NS=e=>e.getById(jA(e)),$A=e=>e.getById(NA(e)),HA=(e,t,a)=>{const i=$A(e);if(!i)return;const{getPercentValue:l}=A0(t,i);return{x:l({dir:a,orientation:"horizontal"}),y:l({orientation:"vertical"})}},BA=e=>e.getById(TA(e)),rm=e=>e.getById(zA(e)),FA=e=>e.getById(AA(e)),WA=(e,t)=>e.getById(LA(e,t)),GA=(e,t,a,i)=>{const l=WA(e,a);if(!l)return;const{getPercentValue:c}=A0(t,l);return{x:c({dir:i,orientation:"horizontal"}),y:c({orientation:"vertical"})}},qA=e=>[...Ql(Vf(e),"input[data-channel]"),...Ql(BA(e),"input[data-channel]")];function YA(e,t){if(t==null)return"";if(t==="hex")return e.toString("hex");if(t==="css")return e.toString("css");if(t in e)return e.getChannelValue(t).toString();const a=e.getFormat()==="hsla";switch(t){case"hue":return a?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return a?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}var VS=e=>Yf(e),XA=/^[0-9a-fA-F]{3,8}$/;function KA(e){return XA.test(e)}function ZA(e){return e.startsWith("#")?e:KA(e)?`#${e}`:e}var{and:QA}=Di();QA("isOpenControlled","closeOnSelect");function LS(e,t,a){const i=qA(e);Ye(()=>{i.forEach(l=>{const c=l.dataset.channel;ul(l,YA(a||t,c))})})}function JA(e,t){const a=UA(e);a&&Ye(()=>ul(a,t))}Me()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]);Me()(["xChannel","yChannel"]);Me()(["channel","orientation"]);Me()(["value","disabled"]);Me()(["value","respectAlpha"]);Me()(["size"]);var df="__live-region__";function e5(e={}){const{level:t="polite",document:a=document,root:i,delay:l=0}=e,c=a.defaultView??window,d=i??a.body;function h(b,v){a.getElementById(df)?.remove(),v=v??l;const S=a.createElement("span");S.id=df,S.dataset.liveAnnouncer="true";const C=t!=="assertive"?"status":"alert";S.setAttribute("aria-live",t),S.setAttribute("role",C),Object.assign(S.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}),d.appendChild(S),c.setTimeout(()=>{S.textContent=b},v)}function p(){a.getElementById(df)?.remove()}return{announce:h,destroy:p,toJSON(){return df}}}var _E=He("splitter").parts("root","panel","resizeTrigger","resizeTriggerIndicator");_E.build();Me()(["dir","getRootNode","id","ids","onResize","onResizeStart","onResizeEnd","onCollapse","onExpand","orientation","size","defaultSize","panels","keyboardResizeBy","nonce"]);Me()(["id"]);Me()(["disabled","id"]);var AE=He("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");AE.build();var IE=e=>e.ids?.root??`accordion:${e.id}`,NE=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,t5=e=>e.getById(IE(e)),vh=e=>{const a=`[data-controls][data-ownedby='${CSS.escape(IE(e))}']:not([disabled])`;return Ql(t5(e),a)},n5=e=>qs(vh(e)),a5=e=>lh(vh(e)),r5=(e,t)=>oE(vh(e),NE(e,t)),i5=(e,t)=>lE(vh(e),NE(e,t)),{and:o5,not:l5}=Di();o5("isExpanded","canToggle"),l5("isExpanded");Me()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]);Me()(["value","disabled"]);var yu=(e,t)=>({x:e,y:t});function s5(e){const{x:t,y:a,width:i,height:l}=e,c=t+i/2,d=a+l/2;return{x:t,y:a,width:i,height:l,minX:t,minY:a,maxX:t+i,maxY:a+l,midX:c,midY:d,center:yu(c,d)}}function c5(e){const t=yu(e.minX,e.minY),a=yu(e.maxX,e.minY),i=yu(e.maxX,e.maxY),l=yu(e.minX,e.maxY);return{top:t,right:a,bottom:i,left:l}}function u5(e,t){const a=s5(e),{top:i,right:l,left:c,bottom:d}=c5(a),[h]=t.split("-");return{top:[c,i,l,d],right:[i,l,d,c],bottom:[i,c,d,l],left:[l,i,c,d]}[h]}function d5(e,t){const{x:a,y:i}=t;let l=!1;for(let c=0,d=e.length-1;ci!=v>i&&a<(b-h)*(i-p)/(v-p)+h&&(l=!l)}return l}var VE=He("avatar").parts("root","image","fallback");VE.build();Me()(["dir","id","ids","onStatusChange","getRootNode"]);var LE=He("carousel").parts("root","itemGroup","item","control","nextTrigger","prevTrigger","indicatorGroup","indicator","autoplayTrigger","progressText");LE.build();Me()(["dir","getRootNode","id","ids","loop","page","defaultPage","onPageChange","orientation","slideCount","slidesPerPage","slidesPerMove","spacing","padding","autoplay","allowMouseDrag","inViewThreshold","translations","snapType","autoSize","onDragStatusChange","onAutoplayStatusChange"]);Me()(["index","readOnly"]);Me()(["index","snapAlign"]);const f5=LE.extendWith("progressText","autoplayIndicator"),[ME,xh]=gl({name:"CheckboxContext",hookName:"useCheckboxContext",providerName:""}),DE=m.forwardRef((e,t)=>{const a=xh(),i=On(a.getControlProps(),e);return u.jsx(Nn.div,{...i,ref:t})});DE.displayName="CheckboxControl";function h5(e){return!(e.metaKey||!fh()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var g5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function p5(e,t,a){const i=a?Vi(a):null,l=xn(i);return e=e||i instanceof l.HTMLInputElement&&!g5.has(i?.type)||i instanceof l.HTMLTextAreaElement||i instanceof l.HTMLElement&&i.isContentEditable,!(e&&t==="keyboard"&&a instanceof l.KeyboardEvent&&!Reflect.has(m5,a.key))}var pl=null,Hm=new Set,Qf=new Map,es=!1,Bm=!1,m5={Tab:!0,Escape:!0};function yh(e,t){for(let a of Hm)a(e,t)}function Jf(e){es=!0,h5(e)&&(pl="keyboard",yh("keyboard",e))}function Mr(e){pl="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(es=!0,yh("pointer",e))}function PE(e){LT(e)&&(es=!0,pl="virtual")}function UE(e){const t=Vi(e);t===xn(t)||t===li(t)||(!es&&!Bm&&(pl="virtual",yh("virtual",e)),es=!1,Bm=!1)}function $E(){es=!1,Bm=!0}function b5(e){if(typeof window>"u"||Qf.get(xn(e)))return;const t=xn(e),a=li(e);let i=t.HTMLElement.prototype.focus;function l(){pl="virtual",yh("virtual",null),es=!0,i.apply(this,arguments)}try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:l})}catch{}a.addEventListener("keydown",Jf,!0),a.addEventListener("keyup",Jf,!0),a.addEventListener("click",PE,!0),t.addEventListener("focus",UE,!0),t.addEventListener("blur",$E,!1),typeof t.PointerEvent<"u"?(a.addEventListener("pointerdown",Mr,!0),a.addEventListener("pointermove",Mr,!0),a.addEventListener("pointerup",Mr,!0)):(a.addEventListener("mousedown",Mr,!0),a.addEventListener("mousemove",Mr,!0),a.addEventListener("mouseup",Mr,!0)),t.addEventListener("beforeunload",()=>{v5(e)},{once:!0}),Qf.set(t,{focus:i})}var v5=(e,t)=>{const a=xn(e),i=li(e),l=Qf.get(a);if(l){try{Object.defineProperty(a.HTMLElement.prototype,"focus",{configurable:!0,value:l.focus})}catch{}i.removeEventListener("keydown",Jf,!0),i.removeEventListener("keyup",Jf,!0),i.removeEventListener("click",PE,!0),a.removeEventListener("focus",UE,!0),a.removeEventListener("blur",$E,!1),typeof a.PointerEvent<"u"?(i.removeEventListener("pointerdown",Mr,!0),i.removeEventListener("pointermove",Mr,!0),i.removeEventListener("pointerup",Mr,!0)):(i.removeEventListener("mousedown",Mr,!0),i.removeEventListener("mousemove",Mr,!0),i.removeEventListener("mouseup",Mr,!0)),Qf.delete(a)}};function x5(){return pl}function Fm(){return pl==="keyboard"}function Y0(e={}){const{isTextInput:t,autoFocus:a,onChange:i,root:l}=e;b5(l),i?.({isFocusVisible:a||Fm(),modality:pl});const c=(d,h)=>{p5(!!t,d,h)&&i?.({isFocusVisible:Fm(),modality:d})};return Hm.add(c),()=>{Hm.delete(c)}}var HE=He("checkbox").parts("root","label","control","indicator"),ff=HE.build(),BE=e=>e.ids?.root??`checkbox:${e.id}`,MS=e=>e.ids?.label??`checkbox:${e.id}:label`,y5=e=>e.ids?.control??`checkbox:${e.id}:control`,Wm=e=>e.ids?.hiddenInput??`checkbox:${e.id}:input`,S5=e=>e.getById(BE(e)),Su=e=>e.getById(Wm(e));function C5(e,t){const{send:a,context:i,prop:l,computed:c,scope:d}=e,h=!!l("disabled"),p=!!l("readOnly"),b=!!l("required"),v=!!l("invalid"),x=!h&&i.get("focused"),S=!h&&i.get("focusVisible"),C=c("checked"),O=c("indeterminate"),w=i.get("checked"),T={"data-active":gt(i.get("active")),"data-focus":gt(x),"data-focus-visible":gt(S),"data-readonly":gt(p),"data-hover":gt(i.get("hovered")),"data-disabled":gt(h),"data-state":O?"indeterminate":C?"checked":"unchecked","data-invalid":gt(v),"data-required":gt(b)};return{checked:C,disabled:h,indeterminate:O,focused:x,checkedState:w,setChecked(A){a({type:"CHECKED.SET",checked:A,isTrusted:!1})},toggleChecked(){a({type:"CHECKED.TOGGLE",checked:C,isTrusted:!1})},getRootProps(){return t.label({...ff.root.attrs,...T,dir:l("dir"),id:BE(d),htmlFor:Wm(d),onPointerMove(){h||a({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){h||a({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(A){Vi(A)===Su(d)&&A.stopPropagation()}})},getLabelProps(){return t.element({...ff.label.attrs,...T,dir:l("dir"),id:MS(d)})},getControlProps(){return t.element({...ff.control.attrs,...T,dir:l("dir"),id:y5(d),"aria-hidden":!0})},getIndicatorProps(){return t.element({...ff.indicator.attrs,...T,dir:l("dir"),hidden:!O&&!C})},getHiddenInputProps(){return t.input({id:Wm(d),type:"checkbox",required:l("required"),defaultChecked:C,disabled:h,"aria-labelledby":MS(d),"aria-invalid":v,name:l("name"),form:l("form"),value:l("value"),style:wz,onFocus(){const A=Fm();a({type:"CONTEXT.SET",context:{focused:!0,focusVisible:A}})},onBlur(){a({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(A){if(p){A.preventDefault();return}const _=A.currentTarget.checked;a({type:"CHECKED.SET",checked:_,isTrusted:!0})}})}}}var{not:DS}=Di(),E5={props({props:e}){return{value:"on",...e,defaultChecked:e.defaultChecked??!1}},initialState(){return"ready"},context({prop:e,bindable:t}){return{checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(a){e("onCheckedChange")?.({checked:a})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}},watch({track:e,context:t,prop:a,action:i}){e([()=>a("disabled")],()=>{i(["removeFocusIfNeeded"])}),e([()=>t.get("checked")],()=>{i(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:DS("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:DS("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{indeterminate:({context:e})=>Lf(e.get("checked")),checked:({context:e})=>w5(e.get("checked")),disabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled")},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({context:e,computed:t,scope:a}){if(!t("disabled"))return fz({pointerNode:S5(a),keyboardNode:Su(a),isValidKey:i=>i.key===" ",onPress:()=>e.set("active",!1),onPressStart:()=>e.set("active",!0),onPressEnd:()=>e.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("disabled"))return Y0({root:t.getRootNode?.()})},trackFormControlState({context:e,scope:t}){return sc(Su(t),{onFieldsetDisabledChange(a){e.set("fieldsetDisabled",a)},onFormReset(){e.set("checked",e.initial("checked"))}})}},actions:{setContext({context:e,event:t}){for(const a in t.context)e.set(a,t.context[a])},syncInputElement({context:e,computed:t,scope:a}){const i=Su(a);i&&(QC(i,t("checked")),i.indeterminate=Lf(e.get("checked")))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.get("focused")&&(e.set("focused",!1),e.set("focusVisible",!1))},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e,computed:t}){const a=Lf(t("checked"))?!0:!t("checked");e.set("checked",a)},dispatchChangeEvent({computed:e,scope:t}){queueMicrotask(()=>{const a=Su(t);qT(a,{checked:e("checked")})})}}}};function Lf(e){return e==="indeterminate"}function w5(e){return Lf(e)?!1:!!e}Me()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const FE=HE.extendWith("group");function k5(e){const{value:t,onChange:a,defaultValue:i}=e,[l,c]=m.useState(i),d=t!==void 0,h=d?t:l,p=m.useCallback(b=>(d||c(b),a?.(b)),[d,a]);return[h,p]}const[GU,R5]=gl({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"",strict:!1});function O5(e={}){const t=R5(),{defaultValue:a,value:i,onValueChange:l,disabled:c=t?.disabled,readOnly:d,name:h,invalid:p=t?.invalid}=e,b=!(c||d),v=Pz(l,{sync:!0}),[x,S]=k5({value:i,defaultValue:a||[],onChange:v}),C=_=>x.some(I=>String(I)===String(_)),O=_=>{C(_)?T(_):w(_)},w=_=>{b&&(C(_)||S(x.concat(_)))},T=_=>{b&&S(x.filter(I=>String(I)!==String(_)))};return{isChecked:C,value:x,name:h,disabled:!!c,readOnly:!!d,invalid:!!p,setValue:S,addValue:w,toggleValue:O,getItemProps:_=>({checked:_.value!=null?C(_.value):void 0,onCheckedChange(){_.value!=null&&O(_.value)},name:h,disabled:c,readOnly:d,invalid:p})}}const[j5,T5]=gl({name:"CheckboxGroupContext",hookName:"useCheckboxGroupContext",providerName:"",strict:!1}),z5=as(),WE=m.forwardRef((e,t)=>{const[a,i]=z5(e,["defaultValue","value","onValueChange","disabled","invalid","readOnly","name"]),l=O5(a);return u.jsx(j5,{value:l,children:u.jsx(Nn.div,{ref:t,role:"group",...i,...FE.build().group.attrs})})});WE.displayName="CheckboxGroup";const[qU,Bu]=gl({name:"FieldContext",hookName:"useFieldContext",providerName:"",strict:!1}),GE=m.forwardRef((e,t)=>{const a=xh(),i=On(a.getHiddenInputProps(),e),l=Bu();return u.jsx(Nn.input,{"aria-describedby":l?.ariaDescribedby,...i,ref:t})});GE.displayName="CheckboxHiddenInput";const qE=m.forwardRef((e,t)=>{const a=xh(),i=On(a.getLabelProps(),e);return u.jsx(Nn.span,{...i,ref:t})});qE.displayName="CheckboxLabel";const _5=(e={})=>{const t=T5(),a=Bu(),i=m.useMemo(()=>On(e,t?.getItemProps({value:e.value})??{}),[e,t]),l=m.useId(),{getRootNode:c}=FC(),{dir:d}=sE(),h={id:l,ids:{label:a?.ids.label,hiddenInput:a?.ids.control},dir:d,disabled:a?.disabled,readOnly:a?.readOnly,invalid:a?.invalid,required:a?.required,getRootNode:c,...i},p=uE(E5,h);return C5(p,fE)},A5=as(),YE=m.forwardRef((e,t)=>{const[a,i]=A5(e,["checked","defaultChecked","disabled","form","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]),l=_5(a),c=On(l.getRootProps(),i);return u.jsx(ME,{value:l,children:u.jsx(Nn.label,{...c,ref:t})})});YE.displayName="CheckboxRoot";const I5=as(),XE=m.forwardRef((e,t)=>{const[{value:a},i]=I5(e,["value"]),l=On(a.getRootProps(),i);return u.jsx(ME,{value:a,children:u.jsx(Nn.label,{...l,ref:t})})});XE.displayName="CheckboxRootProvider";var KE=He("clipboard").parts("root","control","trigger","indicator","input","label");KE.build();Me()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]);Me()(["copied"]);const N5=zE.extendWith("view");var V5=Object.defineProperty,L5=(e,t,a)=>t in e?V5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,he=(e,t,a)=>L5(e,typeof t!="symbol"?t+"":t,a),Mf={itemToValue(e){return typeof e=="string"?e:Kl(e)&&Co(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:Kl(e)&&Co(e,"label")?e.label:Mf.itemToValue(e)},isItemDisabled(e){return Kl(e)&&Co(e,"disabled")?!!e.disabled:!1}},dc=class ZE{constructor(t){this.options=t,he(this,"items"),he(this,"indexMap",null),he(this,"copy",a=>new ZE({...this.options,items:a??[...this.items]})),he(this,"isEqual",a=>ka(this.items,a.items)),he(this,"setItems",a=>this.copy(a)),he(this,"getValues",(a=this.items)=>{const i=[];for(const l of a){const c=this.getItemValue(l);c!=null&&i.push(c)}return i}),he(this,"find",a=>{if(a==null)return null;const i=this.indexOf(a);return i!==-1?this.at(i):null}),he(this,"findMany",a=>{const i=[];for(const l of a){const c=this.find(l);c!=null&&i.push(c)}return i}),he(this,"at",a=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[a]??null;let i=0;const l=this.group();for(const[,c]of l)for(const d of c){if(i===a)return d;i++}return null}),he(this,"sortFn",(a,i)=>{const l=this.indexOf(a),c=this.indexOf(i);return(l??0)-(c??0)}),he(this,"sort",a=>[...a].sort(this.sortFn.bind(this))),he(this,"getItemValue",a=>a==null?null:this.options.itemToValue?.(a)??Mf.itemToValue(a)),he(this,"getItemDisabled",a=>a==null?!1:this.options.isItemDisabled?.(a)??Mf.isItemDisabled(a)),he(this,"stringifyItem",a=>a==null?null:this.options.itemToString?.(a)??Mf.itemToString(a)),he(this,"stringify",a=>a==null?null:this.stringifyItem(this.find(a))),he(this,"stringifyItems",(a,i=", ")=>{const l=[];for(const c of a){const d=this.stringifyItem(c);d!=null&&l.push(d)}return l.join(i)}),he(this,"stringifyMany",(a,i)=>this.stringifyItems(this.findMany(a),i)),he(this,"has",a=>this.indexOf(a)!==-1),he(this,"hasItem",a=>a==null?!1:this.has(this.getItemValue(a))),he(this,"group",()=>{const{groupBy:a,groupSort:i}=this.options;if(!a)return[["",[...this.items]]];const l=new Map;this.items.forEach((d,h)=>{const p=a(d,h);l.has(p)||l.set(p,[]),l.get(p).push(d)});let c=Array.from(l.entries());return i&&c.sort(([d],[h])=>{if(typeof i=="function")return i(d,h);if(Array.isArray(i)){const p=i.indexOf(d),b=i.indexOf(h);return p===-1?1:b===-1?-1:p-b}return i==="asc"?d.localeCompare(h):i==="desc"?h.localeCompare(d):0}),c}),he(this,"getNextValue",(a,i=1,l=!1)=>{let c=this.indexOf(a);if(c===-1)return null;for(c=l?Math.min(c+i,this.size-1):c+i;c<=this.size&&this.getItemDisabled(this.at(c));)c++;return this.getItemValue(this.at(c))}),he(this,"getPreviousValue",(a,i=1,l=!1)=>{let c=this.indexOf(a);if(c===-1)return null;for(c=l?Math.max(c-i,0):c-i;c>=0&&this.getItemDisabled(this.at(c));)c--;return this.getItemValue(this.at(c))}),he(this,"indexOf",a=>{if(a==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(i=>this.getItemValue(i)===a);if(!this.indexMap){this.indexMap=new Map;let i=0;const l=this.group();for(const[,c]of l)for(const d of c){const h=this.getItemValue(d);h!=null&&this.indexMap.set(h,i),i++}}return this.indexMap.get(a)??-1}),he(this,"getByText",(a,i)=>{const l=i!=null?this.indexOf(i):-1,c=a.length===1;for(let d=0;d{const{state:l,currentValue:c,timeout:d=350}=i,h=l.keysSoFar+a,b=h.length>1&&Array.from(h).every(O=>O===h[0])?h[0]:h,v=this.getByText(b,c),x=this.getItemValue(v);function S(){clearTimeout(l.timer),l.timer=-1}function C(O){l.keysSoFar=O,S(),O!==""&&(l.timer=+setTimeout(()=>{C(""),S()},d))}return C(h),x}),he(this,"update",(a,i)=>{let l=this.indexOf(a);return l===-1?this:this.copy([...this.items.slice(0,l),i,...this.items.slice(l+1)])}),he(this,"upsert",(a,i,l="append")=>{let c=this.indexOf(a);return c===-1?(l==="append"?this.append:this.prepend)(i):this.copy([...this.items.slice(0,c),i,...this.items.slice(c+1)])}),he(this,"insert",(a,...i)=>this.copy(nu(this.items,a,...i))),he(this,"insertBefore",(a,...i)=>{let l=this.indexOf(a);if(l===-1)if(this.items.length===0)l=0;else return this;return this.copy(nu(this.items,l,...i))}),he(this,"insertAfter",(a,...i)=>{let l=this.indexOf(a);if(l===-1)if(this.items.length===0)l=0;else return this;return this.copy(nu(this.items,l+1,...i))}),he(this,"prepend",(...a)=>this.copy(nu(this.items,0,...a))),he(this,"append",(...a)=>this.copy(nu(this.items,this.items.length,...a))),he(this,"filter",a=>{const i=this.items.filter((l,c)=>a(this.stringifyItem(l),c,l));return this.copy(i)}),he(this,"remove",(...a)=>{const i=a.map(l=>typeof l=="string"?l:this.getItemValue(l));return this.copy(this.items.filter(l=>{const c=this.getItemValue(l);return c==null?!1:!i.includes(c)}))}),he(this,"move",(a,i)=>{const l=this.indexOf(a);return l===-1?this:this.copy(hf(this.items,[l],i))}),he(this,"moveBefore",(a,...i)=>{let l=this.items.findIndex(d=>this.getItemValue(d)===a);if(l===-1)return this;let c=i.map(d=>this.items.findIndex(h=>this.getItemValue(h)===d)).sort((d,h)=>d-h);return this.copy(hf(this.items,c,l))}),he(this,"moveAfter",(a,...i)=>{let l=this.items.findIndex(d=>this.getItemValue(d)===a);if(l===-1)return this;let c=i.map(d=>this.items.findIndex(h=>this.getItemValue(h)===d)).sort((d,h)=>d-h);return this.copy(hf(this.items,c,l+1))}),he(this,"reorder",(a,i)=>this.copy(hf(this.items,[a],i))),he(this,"compareValue",(a,i)=>{const l=this.indexOf(a),c=this.indexOf(i);return lc?1:0}),he(this,"range",(a,i)=>{let l=[],c=a;for(;c!=null;){if(this.find(c)&&l.push(c),c===i)return l;c=this.getNextValue(c)}return[]}),he(this,"getValueRange",(a,i)=>a&&i?this.compareValue(a,i)<=0?this.range(a,i):this.range(i,a):[]),he(this,"toString",()=>{let a="";for(const i of this.items){const l=this.getItemValue(i),c=this.stringifyItem(i),d=this.getItemDisabled(i),h=[l,c,d].filter(Boolean).join(":");a+=h+","}return a}),he(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},M5=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function nu(e,t,...a){return[...e.slice(0,t),...a,...e.slice(t)]}function hf(e,t,a){t=[...t].sort((l,c)=>l-c);const i=t.map(l=>e[l]);for(let l=t.length-1;l>=0;l--)e=[...e.slice(0,t[l]),...e.slice(t[l]+1)];return a=Math.max(0,a-t.filter(l=>l{const a=new Df([...this]);return this.sync(a)}),he(this,"sync",a=>(a.selectionMode=this.selectionMode,a.deselectable=this.deselectable,a)),he(this,"isEmpty",()=>this.size===0),he(this,"isSelected",a=>this.selectionMode==="none"||a==null?!1:this.has(a)),he(this,"canSelect",(a,i)=>this.selectionMode!=="none"||!a.getItemDisabled(a.find(i))),he(this,"firstSelectedValue",a=>{let i=null;for(let l of this)(!i||a.compareValue(l,i)<0)&&(i=l);return i}),he(this,"lastSelectedValue",a=>{let i=null;for(let l of this)(!i||a.compareValue(l,i)>0)&&(i=l);return i}),he(this,"extendSelection",(a,i,l)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single")return this.replaceSelection(a,l);const c=this.copy(),d=Array.from(this).pop();for(let h of a.getValueRange(i,d??l))c.delete(h);for(let h of a.getValueRange(l,i))this.canSelect(a,h)&&c.add(h);return c}),he(this,"toggleSelection",(a,i)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single"&&!this.isSelected(i))return this.replaceSelection(a,i);const l=this.copy();return l.has(i)?l.delete(i):l.canSelect(a,i)&&l.add(i),l}),he(this,"replaceSelection",(a,i)=>{if(this.selectionMode==="none")return this;if(i==null)return this;if(!this.canSelect(a,i))return this;const l=new Df([i]);return this.sync(l)}),he(this,"setSelection",a=>{if(this.selectionMode==="none")return this;let i=new Df;for(let l of a)if(l!=null&&(i.add(l),this.selectionMode==="single"))break;return this.sync(i)}),he(this,"clearSelection",()=>{const a=this.copy();return a.deselectable&&a.size>0&&a.clear(),a}),he(this,"select",(a,i,l)=>this.selectionMode==="none"?this:this.selectionMode==="single"?this.isSelected(i)&&this.deselectable?this.toggleSelection(a,i):this.replaceSelection(a,i):this.selectionMode==="multiple"||l?this.toggleSelection(a,i):this.replaceSelection(a,i)),he(this,"deselect",a=>{const i=this.copy();return i.delete(a),i}),he(this,"isEqual",a=>ka(Array.from(this),Array.from(a)))}};function QE(e,t,a){for(let i=0;it[a])return 1}return e.length-t.length}function U5(e){return e.sort(JE)}function $5(e,t){let a;return cr(e,{...t,onEnter:(i,l)=>{if(t.predicate(i,l))return a=i,"stop"}}),a}function H5(e,t){const a=[];return cr(e,{onEnter:(i,l)=>{t.predicate(i,l)&&a.push(i)},getChildren:t.getChildren}),a}function PS(e,t){let a;return cr(e,{onEnter:(i,l)=>{if(t.predicate(i,l))return a=[...l],"stop"},getChildren:t.getChildren}),a}function B5(e,t){let a=t.initialResult;return cr(e,{...t,onEnter:(i,l)=>{a=t.nextResult(a,i,l)}}),a}function F5(e,t){return B5(e,{...t,initialResult:[],nextResult:(a,i,l)=>(a.push(...t.transform(i,l)),a)})}function W5(e,t){const{predicate:a,create:i,getChildren:l}=t,c=(d,h)=>{const p=l(d,h),b=[];p.forEach((C,O)=>{const w=[...h,O],T=c(C,w);T&&b.push(T)});const v=h.length===0,x=a(d,h),S=b.length>0;return v||x||S?i(d,b,h):null};return c(e,[])||i(e,[],[])}function G5(e,t){const a=[];let i=0;const l=new Map,c=new Map;return cr(e,{getChildren:t.getChildren,onEnter:(d,h)=>{l.has(d)||l.set(d,i++);const p=t.getChildren(d,h);p.forEach(C=>{c.has(C)||c.set(C,d),l.has(C)||l.set(C,i++)});const b=p.length>0?p.map(C=>l.get(C)):void 0,v=c.get(d),x=v?l.get(v):void 0,S=l.get(d);a.push({...d,_children:b,_parent:x,_index:S})}}),a}function q5(e,t){return{type:"insert",index:e,nodes:t}}function Y5(e){return{type:"remove",indexes:e}}function X0(){return{type:"replace"}}function ew(e){return[e.slice(0,-1),e[e.length-1]]}function tw(e,t,a=new Map){const[i,l]=ew(e);for(let d=i.length-1;d>=0;d--){const h=i.slice(0,d).join();a.get(h)?.type!=="remove"&&a.set(h,X0())}const c=a.get(i.join());return c?.type==="remove"?a.set(i.join(),{type:"removeThenInsert",removeIndexes:c.indexes,insertIndex:l,insertNodes:t}):a.set(i.join(),q5(l,t)),a}function nw(e){const t=new Map,a=new Map;for(const i of e){const l=i.slice(0,-1).join(),c=a.get(l)??[];c.push(i[i.length-1]),a.set(l,c.sort((d,h)=>d-h))}for(const i of e)for(let l=i.length-2;l>=0;l--){const c=i.slice(0,l).join();t.has(c)||t.set(c,X0())}for(const[i,l]of a)t.set(i,Y5(l));return t}function X5(e,t){const a=new Map,[i,l]=ew(e);for(let c=i.length-1;c>=0;c--){const d=i.slice(0,c).join();a.set(d,X0())}return a.set(i.join(),{type:"removeThenInsert",removeIndexes:[l],insertIndex:l,insertNodes:[t]}),a}function Sh(e,t,a){return K5(e,{...a,getChildren:(i,l)=>{const c=l.join();switch(t.get(c)?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return a.getChildren(i,l);default:return[]}},transform:(i,l,c)=>{const d=c.join(),h=t.get(d);switch(h?.type){case"remove":return a.create(i,l.filter((v,x)=>!h.indexes.includes(x)),c);case"removeThenInsert":const p=l.filter((v,x)=>!h.removeIndexes.includes(x)),b=h.removeIndexes.reduce((v,x)=>x{const c=[0,...l],d=c.join(),h=t.transform(i,a[d]??[],l),p=c.slice(0,-1).join(),b=a[p]??[];b.push(h),a[p]=b}}),a[""][0]}function Z5(e,t){const{nodes:a,at:i}=t;if(i.length===0)throw new Error("Can't insert nodes at the root");const l=tw(i,a);return Sh(e,l,t)}function Q5(e,t){if(t.at.length===0)return t.node;const a=X5(t.at,t.node);return Sh(e,a,t)}function J5(e,t){if(t.indexPaths.length===0)return e;for(const i of t.indexPaths)if(i.length===0)throw new Error("Can't remove the root node");const a=nw(t.indexPaths);return Sh(e,a,t)}function eI(e,t){if(t.indexPaths.length===0)return e;for(const c of t.indexPaths)if(c.length===0)throw new Error("Can't move the root node");if(t.to.length===0)throw new Error("Can't move nodes to the root");const a=P5(t.indexPaths),i=a.map(c=>QE(e,c,t)),l=tw(t.to,i,nw(a));return Sh(e,l,t)}function cr(e,t){const{onEnter:a,onLeave:i,getChildren:l}=t;let c=[],d=[{node:e}];const h=t.reuseIndexPath?()=>c:()=>c.slice();for(;d.length>0;){let p=d[d.length-1];if(p.state===void 0){const v=a?.(p.node,h());if(v==="stop")return;p.state=v==="skip"?-1:0}const b=p.children||l(p.node,h());if(p.children||(p.children=b),p.state!==-1){if(p.stateka(this.rootNode,a.rootNode)),he(this,"getNodeChildren",a=>this.options.nodeToChildren?.(a)??Ps.nodeToChildren(a)??[]),he(this,"resolveIndexPath",a=>typeof a=="string"?this.getIndexPath(a):a),he(this,"resolveNode",a=>{const i=this.resolveIndexPath(a);return i?this.at(i):void 0}),he(this,"getNodeChildrenCount",a=>this.options.nodeToChildrenCount?.(a)??Ps.nodeToChildrenCount(a)),he(this,"getNodeValue",a=>this.options.nodeToValue?.(a)??Ps.nodeToValue(a)),he(this,"getNodeDisabled",a=>this.options.isNodeDisabled?.(a)??Ps.isNodeDisabled(a)),he(this,"stringify",a=>{const i=this.findNode(a);return i?this.stringifyNode(i):null}),he(this,"stringifyNode",a=>this.options.nodeToString?.(a)??Ps.nodeToString(a)),he(this,"getFirstNode",(a=this.rootNode)=>{let i;return cr(a,{getChildren:this.getNodeChildren,onEnter:(l,c)=>{if(!i&&c.length>0&&!this.getNodeDisabled(l))return i=l,"stop"}}),i}),he(this,"getLastNode",(a=this.rootNode,i={})=>{let l;return cr(a,{getChildren:this.getNodeChildren,onEnter:(c,d)=>{if(!this.isSameNode(c,a)){if(i.skip?.({value:this.getNodeValue(c),node:c,indexPath:d}))return"skip";d.length>0&&!this.getNodeDisabled(c)&&(l=c)}}}),l}),he(this,"at",a=>QE(this.rootNode,a,{getChildren:this.getNodeChildren})),he(this,"findNode",(a,i=this.rootNode)=>$5(i,{getChildren:this.getNodeChildren,predicate:l=>this.getNodeValue(l)===a})),he(this,"findNodes",(a,i=this.rootNode)=>{const l=new Set(a.filter(c=>c!=null));return H5(i,{getChildren:this.getNodeChildren,predicate:c=>l.has(this.getNodeValue(c))})}),he(this,"sort",a=>a.reduce((i,l)=>{const c=this.getIndexPath(l);return c&&i.push({value:l,indexPath:c}),i},[]).sort((i,l)=>JE(i.indexPath,l.indexPath)).map(({value:i})=>i)),he(this,"getIndexPath",a=>PS(this.rootNode,{getChildren:this.getNodeChildren,predicate:i=>this.getNodeValue(i)===a})),he(this,"getValue",a=>{const i=this.at(a);return i?this.getNodeValue(i):void 0}),he(this,"getValuePath",a=>{if(!a)return[];const i=[];let l=[...a];for(;l.length>0;){const c=this.at(l);c&&i.unshift(this.getNodeValue(c)),l.pop()}return i}),he(this,"getDepth",a=>PS(this.rootNode,{getChildren:this.getNodeChildren,predicate:l=>this.getNodeValue(l)===a})?.length??0),he(this,"isSameNode",(a,i)=>this.getNodeValue(a)===this.getNodeValue(i)),he(this,"isRootNode",a=>this.isSameNode(a,this.rootNode)),he(this,"contains",(a,i)=>!a||!i?!1:i.slice(0,a.length).every((l,c)=>a[c]===i[c])),he(this,"getNextNode",(a,i={})=>{let l=!1,c;return cr(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(d,h)=>{if(this.isRootNode(d))return;const p=this.getNodeValue(d);if(i.skip?.({value:p,node:d,indexPath:h}))return p===a&&(l=!0),"skip";if(l&&!this.getNodeDisabled(d))return c=d,"stop";p===a&&(l=!0)}}),c}),he(this,"getPreviousNode",(a,i={})=>{let l,c=!1;return cr(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(d,h)=>{if(this.isRootNode(d))return;const p=this.getNodeValue(d);if(i.skip?.({value:p,node:d,indexPath:h}))return"skip";if(p===a)return c=!0,"stop";this.getNodeDisabled(d)||(l=d)}}),c?l:void 0}),he(this,"getParentNodes",a=>{const i=this.resolveIndexPath(a)?.slice();if(!i)return[];const l=[];for(;i.length>0;){i.pop();const c=this.at(i);c&&!this.isRootNode(c)&&l.unshift(c)}return l}),he(this,"getDescendantNodes",(a,i)=>{const l=this.resolveNode(a);if(!l)return[];const c=[];return cr(l,{getChildren:this.getNodeChildren,onEnter:(d,h)=>{h.length!==0&&(!i?.withBranch&&this.isBranchNode(d)||c.push(d))}}),c}),he(this,"getDescendantValues",(a,i)=>this.getDescendantNodes(a,i).map(c=>this.getNodeValue(c))),he(this,"getParentIndexPath",a=>a.slice(0,-1)),he(this,"getParentNode",a=>{const i=this.resolveIndexPath(a);return i?this.at(this.getParentIndexPath(i)):void 0}),he(this,"visit",a=>{const{skip:i,...l}=a;cr(this.rootNode,{...l,getChildren:this.getNodeChildren,onEnter:(c,d)=>{if(!this.isRootNode(c))return i?.({value:this.getNodeValue(c),node:c,indexPath:d})?"skip":l.onEnter?.(c,d)}})}),he(this,"getPreviousSibling",a=>{const i=this.getParentNode(a);if(!i)return;const l=this.getNodeChildren(i);let c=a[a.length-1];for(;--c>=0;){const d=l[c];if(!this.getNodeDisabled(d))return d}}),he(this,"getNextSibling",a=>{const i=this.getParentNode(a);if(!i)return;const l=this.getNodeChildren(i);let c=a[a.length-1];for(;++c{const i=this.getParentNode(a);return i?this.getNodeChildren(i):[]}),he(this,"getValues",(a=this.rootNode)=>F5(a,{getChildren:this.getNodeChildren,transform:l=>[this.getNodeValue(l)]}).slice(1)),he(this,"isValidDepth",(a,i)=>i==null?!0:typeof i=="function"?i(a.length):a.length===i),he(this,"isBranchNode",a=>this.getNodeChildren(a).length>0||this.getNodeChildrenCount(a)!=null),he(this,"getBranchValues",(a=this.rootNode,i={})=>{let l=[];return cr(a,{getChildren:this.getNodeChildren,onEnter:(c,d)=>{if(d.length===0)return;const h=this.getNodeValue(c);if(i.skip?.({value:h,node:c,indexPath:d}))return"skip";this.isBranchNode(c)&&this.isValidDepth(d,i.depth)&&l.push(this.getNodeValue(c))}}),l}),he(this,"flatten",(a=this.rootNode)=>G5(a,{getChildren:this.getNodeChildren})),he(this,"_create",(a,i)=>this.getNodeChildren(a).length>0||i.length>0?{...a,children:i}:{...a}),he(this,"_insert",(a,i,l)=>this.copy(Z5(a,{at:i,nodes:l,getChildren:this.getNodeChildren,create:this._create}))),he(this,"copy",a=>new rw({...this.options,rootNode:a})),he(this,"_replace",(a,i,l)=>this.copy(Q5(a,{at:i,node:l,getChildren:this.getNodeChildren,create:this._create}))),he(this,"_move",(a,i,l)=>this.copy(eI(a,{indexPaths:i,to:l,getChildren:this.getNodeChildren,create:this._create}))),he(this,"_remove",(a,i)=>this.copy(J5(a,{indexPaths:i,getChildren:this.getNodeChildren,create:this._create}))),he(this,"replace",(a,i)=>this._replace(this.rootNode,a,i)),he(this,"remove",a=>this._remove(this.rootNode,a)),he(this,"insertBefore",(a,i)=>this.getParentNode(a)?this._insert(this.rootNode,a,i):void 0),he(this,"insertAfter",(a,i)=>{if(!this.getParentNode(a))return;const c=[...a.slice(0,-1),a[a.length-1]+1];return this._insert(this.rootNode,c,i)}),he(this,"move",(a,i)=>this._move(this.rootNode,a,i)),he(this,"filter",a=>{const i=W5(this.rootNode,{predicate:a,getChildren:this.getNodeChildren,create:this._create});return this.copy(i)}),he(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},Ps={nodeToValue(e){return typeof e=="string"?e:Kl(e)&&Co(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:Kl(e)&&Co(e,"label")?e.label:Ps.nodeToValue(e)},isNodeDisabled(e){return Kl(e)&&Co(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(Kl(e)&&Co(e,"childrenCount"))return e.childrenCount}},iw=He("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");iw.build();var ow=e=>new dc(e);ow.empty=()=>new dc({items:[]});var tI=e=>e.ids?.control??`combobox:${e.id}:control`,nI=e=>e.ids?.input??`combobox:${e.id}:input`,aI=e=>e.ids?.content??`combobox:${e.id}:content`,rI=e=>e.ids?.positioner??`combobox:${e.id}:popper`,iI=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,oI=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,Yl=e=>e.getById(aI(e)),Cu=e=>e.getById(nI(e)),$S=e=>e.getById(rI(e)),HS=e=>e.getById(tI(e)),Pf=e=>e.getById(iI(e)),lI=e=>e.getById(oI(e)),au=(e,t)=>{if(t==null)return null;const a=`[role=option][data-value="${CSS.escape(t)}"]`;return hz(Yl(e),a)},BS=e=>{const t=Cu(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},sI=e=>{const t=Pf(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:cI,createMachine:uI,choose:dI}=N0(),{and:An,not:sr}=cI;uI({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],defaultInputValue:"",closeOnSelect:!e.multiple,allowCustomValue:!1,alwaysSubmitOnEnter:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){nE(t)},collection:ow.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"suggesting":"idle"},context({prop:e,bindable:t,getContext:a,getEvent:i}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:ka,hash(l){return l.join(",")},onChange(l){const c=a(),d=c.get("selectedItems"),h=e("collection"),p=l.map(b=>d.find(x=>h.getItemValue(x)===b)||h.find(b));c.set("selectedItems",p),e("onValueChange")?.({value:l,items:p})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(l){const c=e("collection").find(l);e("onHighlightChange")?.({highlightedValue:l,highlightedItem:c})}})),inputValue:t(()=>{let l=e("inputValue")||e("defaultInputValue");const c=e("value")||e("defaultValue");if(!l.trim()&&!e("multiple")){const d=e("collection").stringifyMany(c);l=So(e("selectionBehavior"),{preserve:l||d,replace:d,clear:""})}return{defaultValue:l,value:e("inputValue"),onChange(d){const h=i(),p=(h.previousEvent||h).src;e("onInputValueChange")?.({inputValue:d,reason:p})}}}),highlightedItem:t(()=>{const l=e("highlightedValue");return{defaultValue:e("collection").find(l)}}),selectedItems:t(()=>{const l=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(l)}})}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:a,action:i,send:l}){a([()=>e.hash("value")],()=>{i(["syncSelectedItems"])}),a([()=>e.get("inputValue")],()=>{i(["syncInputValue"])}),a([()=>e.get("highlightedValue")],()=>{i(["syncHighlightedItem","autofillInputValue"])}),a([()=>t("open")],()=>{i(["toggleVisibility"])}),a([()=>t("collection").toString()],()=>{l({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:dI([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:An("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:An("isCustomValue",sr("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:An("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:An("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:An("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:An("isOpenControlled","isCustomValue",sr("hasHighlightedItem"),sr("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:An("isCustomValue",sr("hasHighlightedItem"),sr("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:An("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:An("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:An("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:An("isOpenControlled","isCustomValue",sr("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:An("isCustomValue",sr("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:An("isHighlightedItemRemoved","hasCollectionItems","autoHighlight"),actions:["clearHighlightedValue","highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{guard:"autoHighlight",actions:["highlightFirstItem"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:An("isOpenControlled","isCustomValue",sr("hasHighlightedItem"),sr("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:An("isCustomValue",sr("hasHighlightedItem"),sr("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:An("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:An("isOpenControlled","isCustomValue",sr("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:An("isCustomValue",sr("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:An("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{const a=e("openOnChange");return jj(a)?a:!!a?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>{const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null?!0:!!t},isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue")),hasCollectionItems:({prop:e})=>e("collection").size>0},effects:{trackDismissableLayer({send:e,prop:t,scope:a}){return t("disableLayer")?void 0:Hu(()=>Yl(a),{type:"listbox",defer:!0,exclude:()=>[Cu(a),Pf(a),lI(a)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(l){l.preventDefault(),l.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},trackPlacement({context:e,prop:t,scope:a}){const i=()=>HS(a)||Pf(a),l=()=>$S(a);return e.set("currentPlacement",t("positioning").placement),oi(i,l,{...t("positioning"),defer:!0,onComplete(c){e.set("currentPlacement",c.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:a,event:i}){const l=Cu(a);let c=[];const d=b=>{const v=i.current().type.includes("POINTER"),x=e.get("highlightedValue");if(v||!x)return;const S=Yl(a),C=t("scrollToIndexFn");if(C){const T=t("collection").indexOf(x);C({index:T,immediate:b,getElement:()=>au(a,x)});return}const O=au(a,x),w=Ye(()=>{Iu(O,{rootEl:S,block:"nearest"})});c.push(w)},h=Ye(()=>d(!0));c.push(h);const p=Uu(l,{attributes:["aria-activedescendant"],callback:()=>d(!1)});return c.push(p),()=>{c.forEach(b=>b())}}},actions:{reposition({context:e,prop:t,scope:a,event:i}){oi(()=>HS(a),()=>$S(a),{...t("positioning"),...i.options,defer:!0,listeners:!1,onComplete(d){e.set("currentPlacement",d.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){const{context:t,prop:a}=e,i=a("collection"),l=t.get("highlightedValue");if(!l||!i.has(l))return;const c=a("multiple")?Zs(t.get("value"),l):[l];a("onSelect")?.({value:c,itemValue:l}),t.set("value",c);const d=So(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:i.stringifyMany(c),clear:""});t.set("inputValue",d)},scrollToHighlightedItem({context:e,prop:t,scope:a}){tE(()=>{const i=e.get("highlightedValue");if(i==null)return;const l=au(a,i),c=Yl(a),d=t("scrollToIndexFn");if(d){const h=t("collection").indexOf(i);d({index:h,immediate:!0,getElement:()=>au(a,i)});return}Iu(l,{rootEl:c,block:"nearest"})})},selectItem(e){const{context:t,event:a,flush:i,prop:l}=e;a.value!=null&&i(()=>{const c=l("multiple")?Zs(t.get("value"),a.value):[a.value];l("onSelect")?.({value:c,itemValue:a.value}),t.set("value",c);const d=So(l("selectionBehavior"),{preserve:t.get("inputValue"),replace:l("collection").stringifyMany(c),clear:""});t.set("inputValue",d)})},clearItem(e){const{context:t,event:a,flush:i,prop:l}=e;a.value!=null&&i(()=>{const c=Zl(t.get("value"),a.value);t.set("value",c);const d=So(l("selectionBehavior"),{preserve:t.get("inputValue"),replace:l("collection").stringifyMany(c),clear:""});t.set("inputValue",d)})},setInitialFocus({scope:e}){Ye(()=>{BS(e)})},setFinalFocus({scope:e}){Ye(()=>{Pf(e)?.dataset.focusable==null?BS(e):sI(e)})},syncInputValue({context:e,scope:t,event:a}){const i=Cu(t);i&&(i.value=e.get("inputValue"),queueMicrotask(()=>{a.current().type!=="INPUT.CHANGE"&&rT(i)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:a}){const i=t("selectionBehavior"),l=So(i,{replace:a("hasSelectedItems")?a("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",l)},setValue(e){const{context:t,flush:a,event:i,prop:l}=e;a(()=>{t.set("value",i.value);const c=So(l("selectionBehavior"),{preserve:t.get("inputValue"),replace:l("collection").stringifyMany(i.value),clear:""});t.set("inputValue",c)})},clearSelectedItems(e){const{context:t,flush:a,prop:i}=e;a(()=>{t.set("value",[]);const l=So(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany([]),clear:""});t.set("inputValue",l)})},scrollContentToTop({prop:e,scope:t}){const a=e("scrollToIndexFn");if(a){const i=e("collection").firstValue;a({index:0,immediate:!0,getElement:()=>au(t,i)})}else{const i=Yl(t);if(!i)return;i.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:a}){const i=FS(t);e("onOpenChange")?.({open:!0,reason:i,value:a.get("value")})},invokeOnClose({prop:e,event:t,context:a}){const i=FS(t);e("onOpenChange")?.({open:!1,reason:i,value:a.get("value")})},highlightFirstItem({context:e,prop:t,scope:a}){(Yl(a)?queueMicrotask:Ye)(()=>{const l=t("collection").firstValue;l&&e.set("highlightedValue",l)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:a}){(Yl(a)?queueMicrotask:Ye)(()=>{const l=t("collection").lastValue;l&&e.set("highlightedValue",l)})},highlightNextItem({context:e,prop:t}){let a=null;const i=e.get("highlightedValue"),l=t("collection");i?(a=l.getNextValue(i),!a&&t("loopFocus")&&(a=l.firstValue)):a=l.firstValue,a&&e.set("highlightedValue",a)},highlightPrevItem({context:e,prop:t}){let a=null;const i=e.get("highlightedValue"),l=t("collection");i?(a=l.getPreviousValue(i),!a&&t("loopFocus")&&(a=l.lastValue)):a=l.lastValue,a&&e.set("highlightedValue",a)},highlightFirstSelectedItem({context:e,prop:t}){Ye(()=>{const[a]=t("collection").sort(e.get("value"));a&&e.set("highlightedValue",a)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:a}){Ye(()=>{let i=null;a("hasSelectedItems")?i=t("collection").sort(e.get("value"))[0]:i=t("collection").firstValue,i&&e.set("highlightedValue",i)})},highlightLastOrSelectedItem({context:e,prop:t,computed:a}){Ye(()=>{const i=t("collection");let l=null;a("hasSelectedItems")?l=i.sort(e.get("value"))[0]:l=i.lastValue,l&&e.set("highlightedValue",l)})},autofillInputValue({context:e,computed:t,prop:a,event:i,scope:l}){const c=Cu(l),d=a("collection");if(!t("autoComplete")||!c||!i.keypress)return;const h=d.stringify(e.get("highlightedValue"));Ye(()=>{c.value=h||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:a}=e,i=a("collection"),l=t.get("value"),c=l.map(h=>t.get("selectedItems").find(b=>i.getItemValue(b)===h)||i.find(h));t.set("selectedItems",c);const d=So(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:i.stringifyMany(l),clear:""});t.set("inputValue",d)})},syncHighlightedItem({context:e,prop:t}){const a=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",a)},toggleVisibility({event:e,send:t,prop:a}){t({type:a("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function FS(e){return(e.previousEvent||e).src}Me()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value","alwaysSubmitOnEnter"]);Me()(["htmlFor"]);Me()(["id"]);Me()(["item","persistFocus"]);const fI=iw.extendWith("empty");var K0=He("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger");K0.build();Me()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);var lw=He("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");lw.build();Me()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const sw=m.forwardRef((e,t)=>{const a=Bu(),i=On(a?.getInputProps(),e);return u.jsx(Nn.input,{...i,ref:t})});sw.displayName="FieldInput";const cw=He("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");cw.build();const uw=m.forwardRef((e,t)=>{const a=Bu(),i=On(a?.getSelectProps(),e);return u.jsx(Nn.select,{...i,ref:t})});uw.displayName="FieldSelect";function hI(e){if(!e)return;const t=YC(e);return"box-sizing:"+t.boxSizing+";border-left:"+t.borderLeftWidth+" solid red;border-right:"+t.borderRightWidth+" solid red;font-family:"+t.fontFamily+";font-feature-settings:"+t.fontFeatureSettings+";font-kerning:"+t.fontKerning+";font-size:"+t.fontSize+";font-stretch:"+t.fontStretch+";font-style:"+t.fontStyle+";font-variant:"+t.fontVariant+";font-variant-caps:"+t.fontVariantCaps+";font-variant-ligatures:"+t.fontVariantLigatures+";font-variant-numeric:"+t.fontVariantNumeric+";font-weight:"+t.fontWeight+";letter-spacing:"+t.letterSpacing+";margin-left:"+t.marginLeft+";margin-right:"+t.marginRight+";padding-left:"+t.paddingLeft+";padding-right:"+t.paddingRight+";text-indent:"+t.textIndent+";text-transform:"+t.textTransform}function gI(e){var t=e.createElement("div");return t.id="ghost",t.style.cssText="display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;",e.body.appendChild(t),t}function pI(e){if(!e)return;const t=li(e),a=xn(e),i=gI(t),l=hI(e);l&&(i.style.cssText+=l);function c(){a.requestAnimationFrame(()=>{i.innerHTML=e.value;const d=a.getComputedStyle(i);e?.style.setProperty("width",d.width)})}return c(),e?.addEventListener("input",c),e?.addEventListener("change",c),()=>{t.body.removeChild(i),e?.removeEventListener("input",c),e?.removeEventListener("change",c)}}const dw=He("fieldset").parts("root","errorText","helperText","legend");dw.build();var fw=He("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");fw.build();Me()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]);Me()(["file","type"]);var hw=He("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");hw.build();var mI=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,bI=e=>e.ids?.content??`hover-card:${e.id}:content`,vI=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,im=e=>e.getById(mI(e)),xI=e=>e.getById(bI(e)),WS=e=>e.getById(vI(e)),{not:gf,and:GS}=Di();GS("isOpenControlled",gf("isPointer")),gf("isPointer"),GS("isOpenControlled",gf("isPointer")),gf("isPointer");Me()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var gw=He("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","nodeRenameInput","root","tree");gw.build();var pw=e=>new aw(e);pw.empty=()=>new aw({rootNode:{children:[]}});var mw=(e,t)=>e.ids?.node?.(t)??`tree:${e.id}:node:${t}`,ta=(e,t)=>{t!=null&&e.getById(mw(e,t))?.focus()},yI=(e,t)=>`tree:${e.id}:rename-input:${t}`,qS=(e,t)=>e.getById(yI(e,t));function SI(e,t,a){const i=e.getDescendantValues(t),l=i.every(c=>a.includes(c));return ol(l?Zl(a,...i):Xl(a,...i))}function pf(e,t){const{context:a,prop:i,refs:l}=e;if(!i("loadChildren")){a.set("expandedValue",w=>ol(Xl(w,...t)));return}const c=a.get("loadingStatus"),[d,h]=nS(t,w=>c[w]==="loaded");if(d.length>0&&a.set("expandedValue",w=>ol(Xl(w,...d))),h.length===0)return;const p=i("collection"),[b,v]=nS(h,w=>{const T=p.findNode(w);return p.getNodeChildren(T).length>0});if(b.length>0&&a.set("expandedValue",w=>ol(Xl(w,...b))),v.length===0)return;a.set("loadingStatus",w=>({...w,...v.reduce((T,A)=>({...T,[A]:"loading"}),{})}));const x=v.map(w=>{const T=p.getIndexPath(w),A=p.getValuePath(T),_=p.findNode(w);return{id:w,indexPath:T,valuePath:A,node:_}}),S=l.get("pendingAborts"),C=i("loadChildren");BC(C,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const O=x.map(({id:w,indexPath:T,valuePath:A,node:_})=>{const I=S.get(w);I&&(I.abort(),S.delete(w));const M=new AbortController;return S.set(w,M),C({valuePath:A,indexPath:T,node:_,signal:M.signal})});Promise.allSettled(O).then(w=>{const T=[],A=[],_=a.get("loadingStatus");let I=i("collection");w.forEach((M,R)=>{const{id:V,indexPath:P,node:F,valuePath:B}=x[R];M.status==="fulfilled"?(_[V]="loaded",T.push(V),I=I.replace(P,{...F,children:M.value})):(S.delete(V),Reflect.deleteProperty(_,V),A.push({node:F,error:M.reason,indexPath:P,valuePath:B}))}),a.set("loadingStatus",_),T.length&&(a.set("expandedValue",M=>ol(Xl(M,...T))),i("onLoadChildrenComplete")?.({collection:I})),A.length&&i("onLoadChildrenError")?.({nodes:A})})}function al(e){const{prop:t,context:a}=e;return function({indexPath:l}){return t("collection").getValuePath(l).slice(0,-1).some(d=>!a.get("expandedValue").includes(d))}}var{and:Oi}=Di();Oi("isMultipleSelection","moveFocus"),Oi("isShiftKey","isMultipleSelection"),Oi("isShiftKey","isMultipleSelection"),Oi("isBranchFocused","isBranchExpanded"),Oi("isShiftKey","isMultipleSelection"),Oi("isShiftKey","isMultipleSelection"),Oi("isCtrlKey","isMultipleSelection"),Oi("isShiftKey","isMultipleSelection"),Oi("isCtrlKey","isMultipleSelection"),Oi("isShiftKey","isMultipleSelection");function $l(e,t){const{prop:a,scope:i,computed:l}=e,c=a("scrollToIndexFn");if(!c)return!1;const d=a("collection"),h=l("visibleNodes");for(let p=0;pi.getById(mw(i,t))}),!0}return!1}Me()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren","canRename","onRenameStart","onBeforeRename","onRenameComplete","scrollToIndexFn"]);Me()(["node","indexPath"]);var bw=He("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");bw.build();var vw=e=>new dc(e);vw.empty=()=>new dc({items:[]});var CI=e=>e.ids?.content??`select:${e.id}:content`,EI=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,YS=e=>e.getById(CI(e)),XS=(e,t)=>e.getById(EI(e,t)),{guards:wI,createMachine:kI}=N0(),{or:RI}=wI;kI({props({props:e}){return{loopFocus:!1,composite:!0,defaultValue:[],multiple:!1,typeahead:!0,collection:vw.empty(),orientation:"vertical",selectionMode:"single",...e}},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:ka,onChange(a){const i=e("collection").findMany(a);return e("onValueChange")?.({value:a,items:i})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),sync:!0,onChange(a){e("onHighlightChange")?.({highlightedValue:a,highlightedItem:e("collection").find(a),highlightedIndex:e("collection").indexOf(a)})}})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{const a=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(a)}}),focused:t(()=>({sync:!0,defaultValue:!1}))}},refs(){return{typeahead:{...Js.defaultOptions},focusVisible:!1,inputState:{autoHighlight:!1,focused:!1}}},computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>e.get("typeahead").keysSoFar!=="",isInteractive:({prop:e})=>!e("disabled"),selection:({context:e,prop:t})=>{const a=new D5(e.get("value"));return a.selectionMode=t("selectionMode"),a.deselectable=!!t("deselectable"),a},multiple:({prop:e})=>e("selectionMode")==="multiple"||e("selectionMode")==="extended",valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState(){return"idle"},watch({context:e,prop:t,track:a,action:i}){a([()=>e.get("value").toString()],()=>{i(["syncSelectedItems"])}),a([()=>e.get("highlightedValue")],()=>{i(["syncHighlightedItem"])}),a([()=>t("collection").toString()],()=>{i(["syncHighlightedValue"])})},effects:["trackFocusVisible"],on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]}},states:{idle:{effects:["scrollToHighlightedItem"],on:{"INPUT.FOCUS":{actions:["setFocused","setInputState"]},"CONTENT.FOCUS":[{guard:RI("hasSelectedValue","hasHighlightedValue"),actions:["setFocused"]},{actions:["setFocused","setDefaultHighlightedValue"]}],"CONTENT.BLUR":{actions:["clearFocused","clearInputState"]},"ITEM.CLICK":{actions:["setHighlightedItem","selectHighlightedItem"]},"CONTENT.TYPEAHEAD":{actions:["setFocused","highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},NAVIGATE:{actions:["setFocused","setHighlightedItem","selectWithKeyboard"]}}}},implementations:{guards:{hasSelectedValue:({context:e})=>e.get("value").length>0,hasHighlightedValue:({context:e})=>e.get("highlightedValue")!=null},effects:{trackFocusVisible:({scope:e,refs:t})=>Y0({root:e.getRootNode?.(),onChange(a){t.set("focusVisible",a.isFocusVisible)}}),scrollToHighlightedItem({context:e,prop:t,scope:a}){const i=c=>{const d=e.get("highlightedValue");if(d==null||x5()!=="keyboard")return;const p=YS(a),b=t("scrollToIndexFn");if(b){const x=t("collection").indexOf(d);b?.({index:x,immediate:c,getElement(){return XS(a,d)}});return}const v=XS(a,d);Iu(v,{rootEl:p,block:"nearest"})};return Ye(()=>i(!0)),Uu(()=>YS(a),{defer:!0,attributes:["data-activedescendant"],callback(){i(!1)}})}},actions:{selectHighlightedItem({context:e,prop:t,event:a,computed:i}){const l=a.value??e.get("highlightedValue"),c=t("collection");if(l==null||!c.has(l))return;const d=i("selection");if(a.shiftKey&&i("multiple")&&a.anchorValue){const h=d.extendSelection(c,a.anchorValue,l);ru(d,h,t("onSelect")),e.set("value",Array.from(h))}else{const h=d.select(c,l,a.metaKey);ru(d,h,t("onSelect")),e.set("value",Array.from(h))}},selectWithKeyboard({context:e,prop:t,event:a,computed:i}){const l=i("selection"),c=t("collection");if(a.shiftKey&&i("multiple")&&a.anchorValue){const d=l.extendSelection(c,a.anchorValue,a.value);ru(l,d,t("onSelect")),e.set("value",Array.from(d));return}if(t("selectOnHighlight")){const d=l.replaceSelection(c,a.value);ru(l,d,t("onSelect")),e.set("value",Array.from(d))}},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:a,refs:i}){const l=t("collection").search(a.key,{state:i.get("typeahead"),currentValue:e.get("highlightedValue")});l!=null&&e.set("highlightedValue",l)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:a,computed:i}){const l=t("collection"),c=i("selection"),d=c.select(l,a.value);ru(c,d,t("onSelect")),e.set("value",Array.from(d))},clearItem({context:e,event:t,computed:a}){const l=a("selection").deselect(t.value);e.set("value",Array.from(l))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},syncSelectedItems({context:e,prop:t}){const a=t("collection"),i=e.get("selectedItems"),c=e.get("value").map(d=>i.find(p=>a.getItemValue(p)===d)||a.find(d));e.set("selectedItems",c)},syncHighlightedItem({context:e,prop:t}){const a=t("collection"),i=e.get("highlightedValue"),l=i?a.find(i):null;e.set("highlightedItem",l)},syncHighlightedValue({context:e,prop:t,refs:a}){const i=t("collection"),l=e.get("highlightedValue"),{autoHighlight:c}=a.get("inputState");if(c){queueMicrotask(()=>{e.set("highlightedValue",t("collection").firstValue??null)});return}l!=null&&!i.has(l)&&queueMicrotask(()=>{e.set("highlightedValue",null)})},setFocused({context:e}){e.set("focused",!0)},setDefaultHighlightedValue({context:e,prop:t}){const i=t("collection").firstValue;i!=null&&e.set("highlightedValue",i)},clearFocused({context:e}){e.set("focused",!1)},setInputState({refs:e,event:t}){e.set("inputState",{autoHighlight:!!t.autoHighlight,focused:!0})},clearInputState({refs:e}){e.set("inputState",{autoHighlight:!1,focused:!1})}}}});var OI=(e,t)=>{const a=new Set(e);for(const i of t)a.delete(i);return a};function ru(e,t,a){const i=OI(t,e);for(const l of i)a?.({value:l})}Me()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]);Me()(["item","highlightOnHover"]);Me()(["id"]);Me()(["htmlFor"]);const jI=bw.extendWith("empty");var xw=He("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");xw.build();var yw=e=>e.ids?.trigger??`menu:${e.id}:trigger`,TI=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,Sw=e=>e.ids?.content??`menu:${e.id}:content`,zI=e=>e.ids?.positioner??`menu:${e.id}:popper`,Gm=(e,t)=>`${e.id}/${t}`,Hl=e=>e?.dataset.value??null,il=e=>e.getById(Sw(e)),KS=e=>e.getById(zI(e)),mf=e=>e.getById(yw(e)),_I=(e,t)=>t?e.getById(Gm(e,t)):null,om=e=>e.getById(TI(e)),Fu=e=>{const a=`[role^="menuitem"][data-ownedby=${CSS.escape(Sw(e))}]:not([data-disabled])`;return Ql(il(e),a)},AI=e=>qs(Fu(e)),II=e=>lh(Fu(e)),Z0=(e,t)=>t?e.id===t||e.dataset.value===t:!1,NI=(e,t)=>{const a=Fu(e),i=a.findIndex(l=>Z0(l,t.value));return wj(a,i,{loop:t.loop??t.loopFocus})},VI=(e,t)=>{const a=Fu(e),i=a.findIndex(l=>Z0(l,t.value));return Rj(a,i,{loop:t.loop??t.loopFocus})},LI=(e,t)=>{const a=Fu(e),i=a.find(l=>Z0(l,t.value));return Js(a,{state:t.typeaheadState,key:t.key,activeId:i?.id??null})},MI=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("data-controls"),DI="menu:select";function PI(e,t){if(!e)return;const a=xn(e),i=new a.CustomEvent(DI,{detail:{value:t}});e.dispatchEvent(i)}var{not:Ir,and:Vs,or:UI}=Di();Ir("isSubmenu"),UI("isOpenAutoFocusEvent","isArrowDownEvent"),Vs(Ir("isTriggerItem"),"isOpenControlled"),Ir("isTriggerItem"),Vs("isSubmenu","isOpenControlled"),Ir("isPointerSuspended"),Vs(Ir("isPointerSuspended"),Ir("isTriggerItem")),Vs(Ir("isTriggerItemHighlighted"),Ir("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),Vs(Ir("isTriggerItemHighlighted"),Ir("isHighlightedItemEditable"),"closeOnSelect"),Vs(Ir("isTriggerItemHighlighted"),Ir("isHighlightedItemEditable"));function ZS(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function $I(e,t){return e?d5(e,t):!1}function HI(e,t,a){const i=Object.keys(e).length>0;if(!t)return null;if(!i)return Gm(a,t);for(const l in e){const c=e[l],d=yw(c.scope);if(d===t)return d}return Gm(a,t)}Me()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]);Me()(["closeOnSelect","disabled","value","valueText"]);Me()(["htmlFor"]);Me()(["id"]);Me()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let lm=new Map,qm=!1;try{qm=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let eh=!1;try{eh=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Cw={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class BI{format(t){let a="";if(!qm&&this.options.signDisplay!=null?a=WI(this.numberFormatter,this.options.signDisplay,t):a=this.numberFormatter.format(t),this.options.style==="unit"&&!eh){var i;let{unit:l,unitDisplay:c="short",locale:d}=this.resolvedOptions();if(!l)return a;let h=(i=Cw[l])===null||i===void 0?void 0:i[c];a+=h[d]||h.default}return a}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,a){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,a);if(a= start date");return`${this.format(t)} – ${this.format(a)}`}formatRangeToParts(t,a){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,a);if(a= start date");let i=this.numberFormatter.formatToParts(t),l=this.numberFormatter.formatToParts(a);return[...i.map(c=>({...c,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...l.map(c=>({...c,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!qm&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!eh&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,a={}){this.numberFormatter=FI(t,a),this.options=a}}function FI(e,t={}){let{numberingSystem:a}=t;if(a&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${a}`),t.style==="unit"&&!eh){var i;let{unit:d,unitDisplay:h="short"}=t;if(!d)throw new Error('unit option must be provided with style: "unit"');if(!(!((i=Cw[d])===null||i===void 0)&&i[h]))throw new Error(`Unsupported unit ${d} with unitDisplay = ${h}`);t={...t,style:"decimal"}}let l=e+(t?Object.entries(t).sort((d,h)=>d[0]0||Object.is(a,0):t==="exceptZero"&&(Object.is(a,-0)||Object.is(a,0)?a=Math.abs(a):i=a>0),i){let l=e.format(-a),c=e.format(a),d=l.replace(c,"").replace(/\u200e|\u061C/,"");return[...d].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),l.replace(c,"!!!").replace(d,"+").replace("!!!",c)}else return e.format(a)}}const GI=new RegExp("^.*\\(.*\\).*$"),qI=["latn","arab","hanidec","deva","beng","fullwide"];class Ew{parse(t){return sm(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,a,i){return sm(this.locale,this.options,t).isValidPartialNumber(t,a,i)}getNumberingSystem(t){return sm(this.locale,this.options,t).options.numberingSystem}constructor(t,a={}){this.locale=t,this.options=a}}const QS=new Map;function sm(e,t,a){let i=JS(e,t);if(!e.includes("-nu-")&&!i.isValidPartialNumber(a)){for(let l of qI)if(l!==i.options.numberingSystem){let c=JS(e+(e.includes("-u-")?"-nu-":"-u-nu-")+l,t);if(c.isValidPartialNumber(a))return c}}return i}function JS(e,t){let a=e+(t?Object.entries(t).sort((l,c)=>l[0]-1&&(a=`-${a}`)}let i=a?+a:NaN;if(isNaN(i))return NaN;if(this.options.style==="percent"){var l,c;let d={...this.options,style:"decimal",minimumFractionDigits:Math.min(((l=this.options.minimumFractionDigits)!==null&&l!==void 0?l:0)+2,20),maximumFractionDigits:Math.min(((c=this.options.maximumFractionDigits)!==null&&c!==void 0?c:0)+2,20)};return new Ew(this.locale,d).parse(new BI(this.locale,d).format(i))}return this.options.currencySign==="accounting"&&GI.test(t)&&(i=-1*i),i}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=Ls(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&(t=Ls(t,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&(t=Ls(t," ",this.symbols.group),t=Ls(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,a=-1/0,i=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&a<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&i>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=Ls(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,a={}){this.locale=t,a.roundingIncrement!==1&&a.roundingIncrement!=null&&(a.maximumFractionDigits==null&&a.minimumFractionDigits==null?(a.maximumFractionDigits=0,a.minimumFractionDigits=0):a.maximumFractionDigits==null?a.maximumFractionDigits=a.minimumFractionDigits:a.minimumFractionDigits==null&&(a.minimumFractionDigits=a.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,a),this.options=this.formatter.resolvedOptions(),this.symbols=KI(t,this.formatter,this.options,a);var i,l;this.options.style==="percent"&&(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)>18||((l=this.options.maximumFractionDigits)!==null&&l!==void 0?l:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const e1=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),XI=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function KI(e,t,a,i){var l,c,d,h;let p=new Intl.NumberFormat(e,{...a,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),b=p.formatToParts(-10000.111),v=p.formatToParts(10000.111),x=XI.map(W=>p.formatToParts(W));var S;let C=(S=(l=b.find(W=>W.type==="minusSign"))===null||l===void 0?void 0:l.value)!==null&&S!==void 0?S:"-",O=(c=v.find(W=>W.type==="plusSign"))===null||c===void 0?void 0:c.value;!O&&(i?.signDisplay==="exceptZero"||i?.signDisplay==="always")&&(O="+");let T=(d=new Intl.NumberFormat(e,{...a,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(W=>W.type==="decimal"))===null||d===void 0?void 0:d.value,A=(h=b.find(W=>W.type==="group"))===null||h===void 0?void 0:h.value,_=b.filter(W=>!e1.has(W.type)).map(W=>t1(W.value)),I=x.flatMap(W=>W.filter(Y=>!e1.has(Y.type)).map(Y=>t1(Y.value))),M=[...new Set([..._,...I])].sort((W,Y)=>Y.length-W.length),R=M.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${M.join("|")}|[\\p{White_Space}]`,"gu"),V=[...new Intl.NumberFormat(a.locale,{useGrouping:!1}).format(9876543210)].reverse(),P=new Map(V.map((W,Y)=>[W,Y])),F=new RegExp(`[${V.join("")}]`,"g");return{minusSign:C,plusSign:O,decimal:T,group:A,literals:R,numeral:F,index:W=>String(P.get(W))}}function Ls(e,t,a){return e.replaceAll?e.replaceAll(t,a):e.split(t).join(a)}function t1(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var ww=He("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");ww.build();var ZI=e=>e.ids?.input??`number-input:${e.id}:input`,QI=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,JI=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,kw=e=>`number-input:${e.id}:cursor`,bf=e=>e.getById(ZI(e)),eN=e=>e.getById(QI(e)),tN=e=>e.getById(JI(e)),Rw=e=>e.getDoc().getElementById(kw(e)),nN=(e,t)=>{let a=null;return t==="increment"&&(a=eN(e)),t==="decrement"&&(a=tN(e)),a},aN=(e,t)=>{if(!KC())return oN(e,t),()=>{Rw(e)?.remove()}},rN=e=>{const t=e.getDoc(),a=t.documentElement,i=t.body;return i.style.pointerEvents="none",a.style.userSelect="none",a.style.cursor="ew-resize",()=>{i.style.pointerEvents="",a.style.userSelect="",a.style.cursor="",a.style.length||a.removeAttribute("style"),i.style.length||i.removeAttribute("style")}},iN=(e,t)=>{const{point:a,isRtl:i,event:l}=t,c=e.getWin(),d=Kp(l.movementX,c.devicePixelRatio),h=Kp(l.movementY,c.devicePixelRatio);let p=d>0?"increment":d<0?"decrement":null;i&&p==="increment"&&(p="decrement"),i&&p==="decrement"&&(p="increment");const b={x:a.x+d,y:a.y+h},v=c.innerWidth,x=Kp(7.5,c.devicePixelRatio);return b.x=Hj(b.x+x,v)-x,{hint:p,point:b}},oN=(e,t)=>{const a=e.getDoc(),i=a.createElement("div");i.className="scrubber--cursor",i.id=kw(e),Object.assign(i.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:oT,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),i.innerHTML=` + + + + + + `,a.body.appendChild(i)};function lN(e,t){if(!(!e||!t.isActiveElement(e)))try{const{selectionStart:a,selectionEnd:i,value:l}=e;return a==null||i==null?void 0:{start:a,end:i,value:l}}catch{return}}function sN(e,t,a){if(!(!e||!a.isActiveElement(e))){if(!t){const i=e.value.length;e.setSelectionRange(i,i);return}try{const i=e.value,{start:l,end:c,value:d}=t;if(i===d){e.setSelectionRange(l,c);return}const h=n1(d,i,l),p=l===c?h:n1(d,i,c),b=Math.max(0,Math.min(h,i.length)),v=Math.max(b,Math.min(p,i.length));e.setSelectionRange(b,v)}catch{const i=e.value.length;e.setSelectionRange(i,i)}}}function n1(e,t,a){const i=e.slice(0,a),l=e.slice(a);let c=0;const d=Math.min(i.length,t.length);for(let b=0;b=i.length)return c;if(h>=l.length)return t.length-h;if(c>0)return c;if(h>0)return t.length-h;if(e.length>0){const b=a/e.length;return Math.round(b*t.length)}return t.length}var cN=(e,t={})=>new Intl.NumberFormat(e,t),uN=(e,t={})=>new Ew(e,t),cm=(e,t)=>{const{prop:a,computed:i}=t;return a("formatOptions")?e===""?Number.NaN:i("parser").parse(e):parseFloat(e)},Bl=(e,t)=>{const{prop:a,computed:i}=t;return Number.isNaN(e)?"":a("formatOptions")?i("formatter").format(e):e.toString()},dN=(e,t)=>{let a=e!==void 0&&!Number.isNaN(e)?e:1;return t?.style==="percent"&&(e===void 0||Number.isNaN(e))&&(a=.01),a},{choose:fN,guards:hN,createMachine:gN}=N0(),{not:a1,and:r1}=hN;gN({props({props:e}){const t=dN(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:a}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(i){const l=a(),c=cm(i,{computed:l,prop:e});e("onValueChange")?.({value:i,valueAsNumber:c})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(i){return i?`x:${i.x}, y:${i.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:a})=>cm(e.get("value"),{computed:t,prop:a}),formattedValue:({computed:e,prop:t})=>Bl(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>Gj(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>Wj(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!PC(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>e("translations").valueText?.(t.get("value")),formatter:Dm(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>cN(e,t)),parser:Dm(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>uN(e,t))},watch({track:e,action:t,context:a,computed:i,prop:l}){e([()=>a.get("value"),()=>l("locale"),()=>JSON.stringify(l("formatOptions"))],()=>{t(["syncInputElement"])}),e([()=>i("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>a.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:r1("clampValueOnBlur",a1("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]},{guard:a1("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid","invokeOnValueCommit"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:fN([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:r1("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){const t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){const t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){const a=bf(t);return sc(a,{onFieldsetDisabledChange(i){e.set("fieldsetDisabled",i)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const a=e.get("scrubberCursorPoint");return aN(t,a)},preventTextSelection({scope:e}){return rN(e)},trackButtonDisabled({context:e,scope:t,send:a}){const i=e.get("hint"),l=nN(t,i);return Uu(l,{attributes:["disabled"],callback(){a({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:a}){const i=bf(e);if(!i||!e.isActiveElement(i)||!a("allowMouseWheel"))return;function l(c){c.preventDefault();const d=Math.sign(c.deltaY)*-1;d===1?t({type:"VALUE.INCREMENT"}):d===-1&&t({type:"VALUE.DECREMENT"})}return rn(i,"wheel",l,{passive:!1})},activatePointerLock({scope:e}){if(!KC())return cz(e.getDoc())},trackMousemove({scope:e,send:t,context:a,computed:i}){const l=e.getDoc();function c(h){const p=a.get("scrubberCursorPoint"),b=i("isRtl"),v=iN(e,{point:p,isRtl:b,event:h});v.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:v.hint,point:v.point})}function d(){t({type:"SCRUBBER.POINTER_UP"})}return zu(rn(l,"mousemove",c,!1),rn(l,"mouseup",d,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const a=bf(e);e.isActiveElement(a)||Ye(()=>a?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:a,computed:i}){let l=Kj(i("valueAsNumber"),t.step??a("step"));a("allowOverflow")||(l=Bn(l,a("min"),a("max"))),e.set("value",Bl(l,{computed:i,prop:a}))},decrement({context:e,event:t,prop:a,computed:i}){let l=Zj(i("valueAsNumber"),t.step??a("step"));a("allowOverflow")||(l=Bn(l,a("min"),a("max"))),e.set("value",Bl(l,{computed:i,prop:a}))},setClampedValue({context:e,prop:t,computed:a}){const i=Bn(a("valueAsNumber"),t("min"),t("max"));e.set("value",Bl(i,{computed:a,prop:t}))},setRawValue({context:e,event:t,prop:a,computed:i}){let l=cm(t.value,{computed:i,prop:a});a("allowOverflow")||(l=Bn(l,a("min"),a("max"))),e.set("value",Bl(l,{computed:i,prop:a}))},setValue({context:e,event:t}){const a=t.target?.value??t.value;e.set("value",a)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:a}){const i=Bl(t("max"),{computed:a,prop:t});e.set("value",i)},decrementToMin({context:e,prop:t,computed:a}){const i=Bl(t("min"),{computed:a,prop:t});e.set("value",i)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:a}){if(a.type==="INPUT.CHANGE")return;const i=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:i,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnValueCommit({computed:e,prop:t}){t("onValueCommit")?.({value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:a,scope:i}){const l=t.type.endsWith("CHANGE")?e.get("value"):a("formattedValue"),c=bf(i),d=t.selection??lN(c,i);Ye(()=>{ul(c,l),sN(c,d,i)})},setFormattedValue({context:e,computed:t,action:a}){e.set("value",t("formattedValue")),a(["syncInputElement"])},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const a=Rw(t),i=e.get("scrubberCursorPoint");!a||!i||(a.style.transform=`translate3d(${i.x}px, ${i.y}px, 0px)`)}}}});Me()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueCommit","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var Ow=He("pinInput").parts("root","label","input","control");Ow.build();Me()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);var jw=He("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");jw.build();Me()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);var Q0=He("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");Q0.build();Me()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var Tw=He("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");Tw.build();Me()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var J0=He("radio-group").parts("root","label","item","itemText","itemControl","indicator");J0.build();Me()(["dir","disabled","form","getRootNode","id","ids","invalid","name","onValueChange","orientation","readOnly","required","value","defaultValue"]);Me()(["value","disabled","invalid"]);var zw=He("rating-group").parts("root","label","item","control");zw.build();Me()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]);Me()(["index"]);var _w=He("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");_w.build();Me()(["dir","getRootNode","ids","id"]);const Aw=J0.rename("segment-group");Aw.build();var Iw=He("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");Iw.build();var Nw=e=>new dc(e);Nw.empty=()=>new dc({items:[]});var pN=e=>e.ids?.content??`select:${e.id}:content`,mN=e=>e.ids?.trigger??`select:${e.id}:trigger`,bN=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,vN=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,xN=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,yN=e=>e.ids?.positioner??`select:${e.id}:positioner`,um=e=>e.getById(xN(e)),iu=e=>e.getById(pN(e)),vf=e=>e.getById(mN(e)),SN=e=>e.getById(bN(e)),i1=e=>e.getById(yN(e)),dm=(e,t)=>t==null?null:e.getById(vN(e,t)),{and:ou,not:Fl,or:CN}=Di();CN("isTriggerArrowDownEvent","isTriggerEnterEvent"),ou(Fl("multiple"),"hasSelectedItems"),Fl("multiple"),ou(Fl("multiple"),"hasSelectedItems"),Fl("multiple"),Fl("multiple"),Fl("multiple"),Fl("multiple"),ou("closeOnSelect","isOpenControlled"),ou("hasHighlightedItem","loop","isLastItemHighlighted"),ou("hasHighlightedItem","loop","isFirstItemHighlighted");function o1(e){const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null||!!t}Me()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]);Me()(["item","persistFocus"]);Me()(["id"]);Me()(["htmlFor"]);const[Vw,To]=gl({name:"SliderContext",hookName:"useSliderContext",providerName:""}),Lw=m.forwardRef((e,t)=>{const a=To(),i=On(a.getControlProps(),e);return u.jsx(Nn.div,{...i,ref:t})});Lw.displayName="SliderControl";const[EN,wN]=gl({name:"SliderThumbPropsContext",hookName:"useSliderThumbPropsContext",providerName:""}),Mw=m.forwardRef((e,t)=>{const a=To(),{index:i}=wN(),l=On(a.getDraggingIndicatorProps({index:i}),e);return u.jsx(Nn.span,{...l,ref:t,children:e.children||a.getThumbValue(i)})});Mw.displayName="SliderDraggingIndicator";const Dw=m.forwardRef((e,t)=>{const a=To(),i=On(a.getLabelProps(),e);return u.jsx(Nn.label,{...i,ref:t})});Dw.displayName="SliderLabel";const kN=as(),Pw=m.forwardRef((e,t)=>{const[a,i]=kN(e,["value"]),l=To(),c=On(l.getMarkerProps(a),i);return u.jsx(Nn.span,{...c,ref:t})});Pw.displayName="SliderMarker";const Uw=m.forwardRef((e,t)=>{const a=To(),i=On(a.getMarkerGroupProps(),e);return u.jsx(Nn.div,{...i,ref:t})});Uw.displayName="SliderMarkerGroup";const $w=m.forwardRef((e,t)=>{const a=To(),i=On(a.getRangeProps(),e);return u.jsx(Nn.div,{...i,ref:t})});$w.displayName="SliderRange";var Hw=He("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator"),ji=Hw.build(),Bw=e=>e.ids?.root??`slider:${e.id}`,Fw=(e,t)=>e.ids?.thumb?.(t)??`slider:${e.id}:thumb:${t}`,Ym=(e,t)=>e.ids?.hiddenInput?.(t)??`slider:${e.id}:input:${t}`,Ww=e=>e.ids?.control??`slider:${e.id}:control`,RN=e=>e.ids?.track??`slider:${e.id}:track`,ON=e=>e.ids?.range??`slider:${e.id}:range`,l1=e=>e.ids?.label??`slider:${e.id}:label`,jN=e=>e.ids?.valueText??`slider:${e.id}:value-text`,TN=(e,t)=>e.ids?.marker?.(t)??`slider:${e.id}:marker:${t}`,zN=e=>e.getById(Bw(e)),_N=(e,t)=>e.getById(Fw(e,t)),Gw=e=>Ql(Yw(e),"[role=slider]"),AN=e=>Gw(e)[0],qw=(e,t)=>e.getById(Ym(e,t)),Yw=e=>e.getById(Ww(e)),s1=(e,t)=>{const{prop:a,scope:i,refs:l}=e,c=Yw(i);if(!c)return;const d=l.get("thumbDragOffset"),h={x:t.x-(d?.x??0),y:t.y-(d?.y??0)},b=A0(h,c).getPercentValue({orientation:a("orientation"),dir:a("dir"),inverted:{y:!0}});return C0(b,a("min"),a("max"),a("step"))},IN=(e,t)=>{t.forEach((a,i)=>{const l=qw(e,i);l&&O0(l,{value:a})})},NN=e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0});function VN(e){const t=e[0],a=e[e.length-1];return[t,a]}function LN(e){const{prop:t,computed:a}=e,i=a("valuePercent"),[l,c]=VN(i);if(i.length===1){if(t("origin")==="center"){const d=i[0]<50,h=d?`${i[0]}%`:"50%",p=d?"50%":`${100-i[0]}%`;return{start:h,end:p}}return t("origin")==="end"?{start:`${c}%`,end:"0%"}:{start:"0%",end:`${100-c}%`}}return{start:`${l}%`,end:`${100-c}%`}}function MN(e){const{computed:t}=e,a=t("isVertical"),i=t("isRtl");return a?{position:"absolute",bottom:"var(--slider-range-start)",top:"var(--slider-range-end)"}:{position:"absolute",[i?"right":"left"]:"var(--slider-range-start)",[i?"left":"right"]:"var(--slider-range-end)"}}function DN(e,t){const{context:a,prop:i}=e,{height:l=0}=a.get("thumbSize")??{},c=Lm([i("min"),i("max")],[-l/2,l/2]);return parseFloat(c(t).toFixed(2))}function PN(e,t){const{computed:a,context:i,prop:l}=e,{width:c=0}=i.get("thumbSize")??{};if(a("isRtl")){const p=Lm([l("max"),l("min")],[-c/2,c/2]);return-1*parseFloat(p(t).toFixed(2))}const h=Lm([l("min"),l("max")],[-c/2,c/2]);return parseFloat(h(t).toFixed(2))}function UN(e,t,a){const{computed:i,prop:l}=e;if(l("thumbAlignment")==="center")return`${t}%`;const c=i("isVertical")?DN(e,a):PN(e,a);return`calc(${t}% - ${c}px)`}function Xw(e,t){const{prop:a}=e,i=ch(t,a("min"),a("max"))*100;return UN(e,i,t)}function Kw(e){const{computed:t,prop:a}=e;let i="visible";return a("thumbAlignment")==="contain"&&!t("hasMeasuredThumbSize")&&(i="hidden"),i}function c1(e,t){const{computed:a,context:i}=e,l=a("isVertical")?"bottom":"insetInlineStart",c=i.get("focusedIndex");return{visibility:Kw(e),position:"absolute",transform:"var(--slider-thumb-transform)",[l]:`var(--slider-thumb-offset-${t})`,zIndex:c===t?1:void 0}}function $N(){return{touchAction:"none",userSelect:"none",WebkitUserSelect:"none",position:"relative"}}function HN(e){const{context:t,computed:a}=e,i=a("isVertical"),l=a("isRtl"),c=LN(e),d=t.get("thumbSize");return{...t.get("value").reduce((p,b,v)=>{const x=Xw(e,b);return{...p,[`--slider-thumb-offset-${v}`]:x}},{}),"--slider-thumb-width":lS(d?.width),"--slider-thumb-height":lS(d?.height),"--slider-thumb-transform":i?"translateY(50%)":l?"translateX(50%)":"translateX(-50%)","--slider-range-start":c.start,"--slider-range-end":c.end}}function BN(e,t){const{computed:a}=e,i=a("isHorizontal"),l=a("isRtl");return{visibility:Kw(e),position:"absolute",pointerEvents:"none",[i?"insetInlineStart":"bottom"]:Xw(e,t),translate:"var(--translate-x) var(--translate-y)","--translate-x":i?l?"50%":"-50%":"0%","--translate-y":i?"0%":"50%"}}function FN(){return{userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none",position:"relative"}}function WN(e,t){return t.map((a,i)=>Xm(e,a,i))}function sl(e,t){const{context:a,prop:i}=e,l=i("step")*i("minStepsBetweenThumbs");return $C(a.get("value"),i("min"),i("max"),l)[t]}function Xm(e,t,a){const{prop:i}=e,l=sl(e,a),c=_u(t,i("min"),i("max"),i("step"));return Bn(c,l.min,l.max)}function GN(e,t,a){const{context:i,prop:l}=e,c=t??i.get("focusedIndex"),d=sl(e,c),h=Xj(c,{...d,step:a??l("step"),values:i.get("value")});return h[c]=Bn(h[c],d.min,d.max),h}function qN(e,t,a){const{context:i,prop:l}=e,c=t??i.get("focusedIndex"),d=sl(e,c),h=Yj(c,{...d,step:a??l("step"),values:i.get("value")});return h[c]=Bn(h[c],d.min,d.max),h}function YN(e,t){const{context:a}=e,i=a.get("value");let l=0,c=Math.abs(i[0]-t);for(let d=1;d0&&l[h-1]===c;)h-=1;return h}return t}function XN(e,t){const{state:a,send:i,context:l,prop:c,computed:d,scope:h}=e,p=c("aria-label"),b=c("aria-labelledby"),v=l.get("value"),x=l.get("focusedIndex"),S=a.matches("focus"),C=a.matches("dragging"),O=d("isDisabled"),w=c("invalid"),T=d("isInteractive"),A=c("orientation")==="horizontal",_=c("orientation")==="vertical";function I(R){return ch(R,c("min"),c("max"))}function M(R){return C0(R,c("min"),c("max"),c("step"))}return{value:v,dragging:C,focused:S,setValue(R){i({type:"SET_VALUE",value:R})},getThumbValue(R){return v[R]},setThumbValue(R,V){i({type:"SET_VALUE",index:R,value:V})},getValuePercent:I,getPercentValue:M,getThumbPercent(R){return I(v[R])},setThumbPercent(R,V){const P=M(V);i({type:"SET_VALUE",index:R,value:P})},getThumbMin(R){return sl(e,R).min},getThumbMax(R){return sl(e,R).max},increment(R){i({type:"INCREMENT",index:R})},decrement(R){i({type:"DECREMENT",index:R})},focus(){T&&i({type:"FOCUS",index:0})},getLabelProps(){return t.label({...ji.label.attrs,dir:c("dir"),"data-disabled":gt(O),"data-orientation":c("orientation"),"data-invalid":gt(w),"data-dragging":gt(C),"data-focus":gt(S),id:l1(h),htmlFor:Ym(h,0),onClick(R){T&&(R.preventDefault(),AN(h)?.focus())},style:{userSelect:"none",WebkitUserSelect:"none"}})},getRootProps(){return t.element({...ji.root.attrs,"data-disabled":gt(O),"data-orientation":c("orientation"),"data-dragging":gt(C),"data-invalid":gt(w),"data-focus":gt(S),id:Bw(h),dir:c("dir"),style:HN(e)})},getValueTextProps(){return t.element({...ji.valueText.attrs,dir:c("dir"),"data-disabled":gt(O),"data-orientation":c("orientation"),"data-invalid":gt(w),"data-focus":gt(S),id:jN(h)})},getTrackProps(){return t.element({...ji.track.attrs,dir:c("dir"),id:RN(h),"data-disabled":gt(O),"data-invalid":gt(w),"data-dragging":gt(C),"data-orientation":c("orientation"),"data-focus":gt(S),style:{position:"relative"}})},getThumbProps(R){const{index:V=0,name:P}=R,F=v[V],B=sl(e,V),W=c("getAriaValueText")?.({value:F,index:V}),Y=Array.isArray(p)?p[V]:p,U=Array.isArray(b)?b[V]:b;return t.element({...ji.thumb.attrs,dir:c("dir"),"data-index":V,"data-name":P,id:Fw(h,V),"data-disabled":gt(O),"data-orientation":c("orientation"),"data-focus":gt(S&&x===V),"data-dragging":gt(C&&x===V),draggable:!1,"aria-disabled":lT(O),"aria-label":Y,"aria-labelledby":U??l1(h),"aria-orientation":c("orientation"),"aria-valuemax":B.max,"aria-valuemin":B.min,"aria-valuenow":v[V],"aria-valuetext":W,role:"slider",tabIndex:O?void 0:0,style:c1(e,V),onPointerDown(be){if(!T||!uS(be))return;const ve=be.currentTarget.getBoundingClientRect(),N={x:ve.left+ve.width/2,y:ve.top+ve.height/2},te={x:be.clientX-N.x,y:be.clientY-N.y};i({type:"THUMB_POINTER_DOWN",index:V,offset:te}),be.stopPropagation()},onBlur(){T&&i({type:"BLUR"})},onFocus(){T&&i({type:"FOCUS",index:V})},onKeyDown(be){if(be.defaultPrevented||!T)return;const de=WT(be)*c("step"),ve={ArrowUp(){A||i({type:"ARROW_INC",step:de,src:"ArrowUp"})},ArrowDown(){A||i({type:"ARROW_DEC",step:de,src:"ArrowDown"})},ArrowLeft(){_||i({type:"ARROW_DEC",step:de,src:"ArrowLeft"})},ArrowRight(){_||i({type:"ARROW_INC",step:de,src:"ArrowRight"})},PageUp(){i({type:"ARROW_INC",step:de,src:"PageUp"})},PageDown(){i({type:"ARROW_DEC",step:de,src:"PageDown"})},Home(){i({type:"HOME"})},End(){i({type:"END"})}},N=$T(be,{dir:c("dir"),orientation:c("orientation")}),te=ve[N];te&&(te(be),be.preventDefault(),be.stopPropagation())}})},getHiddenInputProps(R){const{index:V=0,name:P}=R;return t.input({name:P??(c("name")?c("name")+(v.length>1?"[]":""):void 0),form:c("form"),type:"text",hidden:!0,defaultValue:v[V],id:Ym(h,V)})},getRangeProps(){return t.element({id:ON(h),...ji.range.attrs,dir:c("dir"),"data-dragging":gt(C),"data-focus":gt(S),"data-invalid":gt(w),"data-disabled":gt(O),"data-orientation":c("orientation"),style:MN(e)})},getControlProps(){return t.element({...ji.control.attrs,dir:c("dir"),id:Ww(h),"data-dragging":gt(C),"data-disabled":gt(O),"data-orientation":c("orientation"),"data-invalid":gt(w),"data-focus":gt(S),style:$N(),onPointerDown(R){if(!T||!uS(R)||DT(R))return;const V=Wf(R);i({type:"POINTER_DOWN",point:V}),R.preventDefault(),R.stopPropagation()}})},getMarkerGroupProps(){return t.element({...ji.markerGroup.attrs,role:"presentation",dir:c("dir"),"aria-hidden":!0,"data-orientation":c("orientation"),style:FN()})},getMarkerProps(R){const V=BN(e,R.value);let P;return R.valuelh(v)?P="over-value":P="at-value",t.element({...ji.marker.attrs,id:TN(h,R.value),role:"presentation",dir:c("dir"),"data-orientation":c("orientation"),"data-value":R.value,"data-disabled":gt(O),"data-state":P,style:V})},getDraggingIndicatorProps(R){const{index:V=0}=R,P=V===x&&C;return t.element({...ji.draggingIndicator.attrs,role:"presentation",dir:c("dir"),hidden:!P,"data-orientation":c("orientation"),"data-state":P?"open":"closed",style:c1(e,V)})}}}var KN=(e,t)=>e?.width===t?.width&&e?.height===t?.height,u1=(e,t,a,i,l)=>$C(e,t,a,l*i).map(d=>{const h=_u(d.value,d.min,d.max,i),p=Bn(h,d.min,d.max);if(!PC(p,t,a))throw new Error("[zag-js/slider] The configured `min`, `max`, `step` or `minStepsBetweenThumbs` values are invalid");return p}),ZN={props({props:e}){const t=e.min??0,a=e.max??100,i=e.step??1,l=e.defaultValue??[t],c=e.minStepsBetweenThumbs??0;return{dir:"ltr",thumbAlignment:"contain",origin:"start",orientation:"horizontal",minStepsBetweenThumbs:c,...e,defaultValue:u1(l,t,a,i,c),value:e.value?u1(e.value,t,a,i,c):void 0,max:a,step:i,min:t}},initialState(){return"idle"},context({prop:e,bindable:t,getContext:a}){return{thumbSize:t(()=>({defaultValue:e("thumbSize")||null})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:ka,hash(i){return i.join(",")},onChange(i){e("onValueChange")?.({value:i})}})),focusedIndex:t(()=>({defaultValue:-1,onChange(i){const l=a();e("onFocusChange")?.({focusedIndex:i,value:l.get("value")})}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},refs(){return{thumbDragOffset:null}},computed:{isHorizontal:({prop:e})=>e("orientation")==="horizontal",isVertical:({prop:e})=>e("orientation")==="vertical",isRtl:({prop:e})=>e("orientation")==="horizontal"&&e("dir")==="rtl",isDisabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled"),isInteractive:({prop:e,computed:t})=>!(e("readOnly")||t("isDisabled")),hasMeasuredThumbSize:({context:e})=>e.get("thumbSize")!=null,valuePercent:Dm(({context:e,prop:t})=>[e.get("value"),t("min"),t("max")],([e,t,a])=>e.map(i=>100*ch(i,t,a)))},watch({track:e,action:t,context:a,computed:i,send:l}){e([()=>a.hash("value")],()=>{t(["syncInputElements","dispatchChangeEvent"])}),e([()=>i("isDisabled")],()=>{i("isDisabled")&&l({type:"POINTER_CANCEL"})})},effects:["trackFormControlState","trackThumbSize"],on:{SET_VALUE:[{guard:"hasIndex",actions:["setValueAtIndex","invokeOnChangeEnd"]},{actions:["setValue","invokeOnChangeEnd"]}],INCREMENT:{actions:["incrementThumbAtIndex","invokeOnChangeEnd"]},DECREMENT:{actions:["decrementThumbAtIndex","invokeOnChangeEnd"]}},states:{idle:{on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","focusActiveThumb"]},FOCUS:{target:"focus",actions:["setFocusedIndex"]},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","setThumbDragOffset","focusActiveThumb"]}}},focus:{entry:["focusActiveThumb"],on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","focusActiveThumb"]},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","setThumbDragOffset","focusActiveThumb"]},ARROW_DEC:{actions:["decrementThumbAtIndex","invokeOnChangeEnd"]},ARROW_INC:{actions:["incrementThumbAtIndex","invokeOnChangeEnd"]},HOME:{actions:["setFocusedThumbToMin","invokeOnChangeEnd"]},END:{actions:["setFocusedThumbToMax","invokeOnChangeEnd"]},BLUR:{target:"idle",actions:["clearFocusedIndex"]}}},dragging:{entry:["focusActiveThumb"],effects:["trackPointerMove"],on:{POINTER_UP:{target:"focus",actions:["invokeOnChangeEnd","clearThumbDragOffset"]},POINTER_MOVE:{actions:["setPointerValue"]},POINTER_CANCEL:{target:"idle",actions:["clearFocusedIndex","clearThumbDragOffset"]}}}},implementations:{guards:{hasIndex:({event:e})=>e.index!=null},effects:{trackFormControlState({context:e,scope:t}){return sc(zN(t),{onFieldsetDisabledChange(a){e.set("fieldsetDisabled",a)},onFormReset(){e.set("value",e.initial("value"))}})},trackPointerMove({scope:e,send:t}){return iE(e.getDoc(),{onPointerMove(a){t({type:"POINTER_MOVE",point:a.point})},onPointerUp(){t({type:"POINTER_UP"})}})},trackThumbSize({context:e,scope:t,prop:a}){if(a("thumbAlignment")!=="contain"||a("thumbSize"))return;const i=d=>{const h=NN(d),p=Qj(h,["width","height"]);KN(e.get("thumbSize"),p)||e.set("thumbSize",p)},l=Gw(t);l.forEach(i);const c=l.map(d=>mz.observe(d,()=>i(d)));return zu(...c)}},actions:{dispatchChangeEvent({context:e,scope:t}){IN(t,e.get("value"))},syncInputElements({context:e,scope:t}){e.get("value").forEach((a,i)=>{const l=qw(t,i);ul(l,a.toString())})},invokeOnChangeEnd({prop:e,context:t}){queueMicrotask(()=>{e("onValueChangeEnd")?.({value:t.get("value")})})},setClosestThumbIndex(e){const{context:t,event:a}=e,i=s1(e,a.point);if(i==null)return;const l=YN(e,i);t.set("focusedIndex",l)},setFocusedIndex(e){const{context:t,event:a}=e,i=Zw(e,a.index);t.set("focusedIndex",i)},clearFocusedIndex({context:e}){e.set("focusedIndex",-1)},setThumbDragOffset(e){const{refs:t,event:a}=e;t.set("thumbDragOffset",a.offset??null)},clearThumbDragOffset({refs:e}){e.set("thumbDragOffset",null)},setPointerValue(e){queueMicrotask(()=>{const{context:t,event:a}=e,i=s1(e,a.point);if(i==null)return;const l=t.get("focusedIndex"),c=Xm(e,i,l);t.set("value",d=>bu(d,l,c))})},focusActiveThumb({scope:e,context:t}){Ye(()=>{_N(e,t.get("focusedIndex"))?.focus({preventScroll:!0})})},decrementThumbAtIndex(e){const{context:t,event:a}=e,i=GN(e,a.index,a.step);t.set("value",i)},incrementThumbAtIndex(e){const{context:t,event:a}=e,i=qN(e,a.index,a.step);t.set("value",i)},setFocusedThumbToMin(e){const{context:t}=e,a=t.get("focusedIndex"),{min:i}=sl(e,a);t.set("value",l=>bu(l,a,i))},setFocusedThumbToMax(e){const{context:t}=e,a=t.get("focusedIndex"),{max:i}=sl(e,a);t.set("value",l=>bu(l,a,i))},setValueAtIndex(e){const{context:t,event:a}=e,i=Xm(e,a.value,a.index);t.set("value",l=>bu(l,a.index,i))},setValue(e){const{context:t,event:a}=e,i=WN(e,a.value);t.set("value",i)}}}};Me()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]);Me()(["index","name"]);Me()(["value"]);const QN=e=>{const t=m.useId(),{getRootNode:a}=FC(),{dir:i}=sE(),l={id:t,dir:i,getRootNode:a,...e},c=uE(ZN,l);return XN(c,fE)},JN=as(),Qw=m.forwardRef((e,t)=>{const[a,i]=JN(e,["aria-label","aria-labelledby","defaultValue","disabled","form","getAriaValueText","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value"]),l=QN(a),c=On(l.getRootProps(),i);return u.jsx(Vw,{value:l,children:u.jsx(Nn.div,{...c,ref:t})})});Qw.displayName="SliderRoot";const eV=as(),Jw=m.forwardRef((e,t)=>{const[{value:a},i]=eV(e,["value"]),l=On(a.getRootProps(),i);return u.jsx(Vw,{value:a,children:u.jsx(Nn.div,{...l,ref:t})})});Jw.displayName="SliderRootProvider";const tV=as(),ek=m.forwardRef((e,t)=>{const[a,i]=tV(e,["index","name"]),l=To(),c=On(l.getThumbProps(a),i);return u.jsx(EN,{value:a,children:u.jsx(Nn.div,{...c,ref:t})})});ek.displayName="SliderThumb";const tk=m.forwardRef((e,t)=>{const a=To(),i=On(a.getTrackProps(),e);return u.jsx(Nn.div,{...i,ref:t})});tk.displayName="SliderTrack";const nk=m.forwardRef((e,t)=>{const{children:a,...i}=e,l=To(),c=On(l.getValueTextProps(),i);return u.jsx(Nn.span,{...c,ref:t,children:a||l.value.join(", ")})});nk.displayName="SliderValueText";var ak=He("switch").parts("root","label","control","thumb");ak.build();Me()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var rk=He("tagsInput").parts("root","label","control","input","clearTrigger","item","itemPreview","itemInput","itemText","itemDeleteTrigger");rk.build();var nV=e=>e.ids?.root??`tags-input:${e.id}`,aV=e=>e.ids?.input??`tags-input:${e.id}:input`,rV=e=>e.ids?.hiddenInput??`tags-input:${e.id}:hidden-input`,Km=(e,t)=>e.ids?.item?.(t)??`tags-input:${e.id}:tag:${t.value}:${t.index}`,iV=(e,t)=>e.ids?.itemInput?.(t)??`${Km(e,t)}:input`,oV=e=>`${e}:input`,d1=(e,t)=>e.getById(oV(t)),lV=e=>Ql(ik(e),"[data-part=item]"),sV=(e,t)=>e.getById(iV(e,t)),ik=e=>e.getById(nV(e)),lu=e=>e.getById(aV(e)),ok=e=>e.getById(rV(e)),ts=e=>Ql(ik(e),"[data-part=item-preview]:not([data-disabled])"),cV=e=>ts(e)[0],uV=e=>ts(e)[ts(e).length-1],dV=(e,t)=>lE(ts(e),t,!1),fV=(e,t)=>oE(ts(e),t,!1),hV=(e,t)=>ts(e)[t],su=(e,t)=>hh(ts(e),t),gV=(e,t)=>{const a=ok(e);a&&O0(a,{value:t})},{and:cu,not:Wl,or:pV}=Di();cu(pV(Wl("isAtMax"),"allowOverflow"),Wl("isInputValueEmpty")),Wl("hasHighlightedTag"),cu("hasTags","isCaretAtStart"),cu("hasTags","isCaretAtStart"),cu("hasTags","isCaretAtStart",Wl("isLastTagHighlighted")),Wl("isCaretAtStart"),cu("isTagEditable","hasHighlightedTag"),Wl("isCaretAtStart"),Wl("isCaretAtStart");Me()(["addOnPaste","allowOverflow","autoFocus","blurBehavior","delimiter","dir","disabled","editable","form","getRootNode","id","ids","inputValue","invalid","max","maxLength","name","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onPointerDownOutside","onValueChange","onValueInvalid","required","readOnly","translations","validate","value","defaultValue","defaultInputValue"]);Me()(["index","disabled","value"]);var lk=He("tooltip").parts("trigger","arrow","arrowTip","positioner","content");lk.build();var mV=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,bV=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,fm=e=>e.getById(mV(e)),f1=e=>e.getById(bV(e)),Gl=Jj({id:null}),{and:vV,not:h1}=Di();vV("noVisibleTooltip",h1("hasPointerMoveOpened")),h1("hasPointerMoveOpened");Me()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);function eb(e,t=[]){const a=Object.assign({},e);for(const i of t)i in a&&delete a[i];return a}const xV=(e,t)=>{if(!e||typeof e!="string")return{invalid:!0,value:e};const[a,i]=e.split("/");if(!a||!i||a==="currentBg")return{invalid:!0,value:a};const l=t(`colors.${a}`),c=t.raw(`opacity.${i}`)?.value;if(!c&&isNaN(Number(i)))return{invalid:!0,value:a};const d=c?Number(c)*100+"%":`${i}%`,h=l??a;return{invalid:!1,color:h,value:`color-mix(in srgb, ${h} ${d}, transparent)`}},Wt=e=>(t,a)=>{const i=a.utils.colorMix(t);if(i.invalid)return{[e]:t};const l="--mix-"+e;return{[l]:i.value,[e]:`var(${l}, ${i.color})`}};function Zm(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(a=>Zm(a));const t=Object.create(Object.getPrototypeOf(e));for(const a of Object.keys(e))t[a]=Zm(e[a]);return t}function Qm(e,t){if(t==null)return e;for(const a of Object.keys(t))if(!(t[a]===void 0||a==="__proto__"))if(!Ba(e[a])&&Ba(t[a]))Object.assign(e,{[a]:t[a]});else if(e[a]&&Ba(t[a]))Qm(e[a],t[a]);else if(Array.isArray(t[a])&&Array.isArray(e[a])){let i=0;for(;ie!=null;function Mi(e,t,a={}){const{stop:i,getKey:l}=a;function c(d,h=[]){if(Ba(d)||Array.isArray(d)){const p={};for(const[b,v]of Object.entries(d)){const x=l?.(b,v)??b,S=[...h,x];if(i?.(d,S))return t(d,h);const C=c(v,S);Jm(C)&&(p[x]=C)}return p}return t(d,h)}return c(e)}function hc(e,t){return Array.isArray(e)?e.map(a=>Jm(a)?t(a):a):Ba(e)?Mi(e,a=>t(a)):Jm(e)?t(e):e}const xf=["value","type","description"],yV=e=>e&&typeof e=="object"&&!Array.isArray(e),sk=(...e)=>{const t=fc({},...e.map(Zm));return t.theme?.tokens&&Mi(t.theme.tokens,a=>{const c=Object.keys(a).filter(h=>!xf.includes(h)).length>0,d=xf.some(h=>a[h]!=null);return c&&d&&(a.DEFAULT||(a.DEFAULT={}),xf.forEach(h=>{var p;a[h]!=null&&((p=a.DEFAULT)[h]||(p[h]=a[h]),delete a[h])})),a},{stop(a){return yV(a)&&Object.keys(a).some(i=>xf.includes(i)||i!==i.toLowerCase()&&i!==i.toUpperCase())}}),t},SV=e=>e,Vn=e=>e,Fe=e=>e,CV=e=>e,EV=e=>e,rs=e=>e,wV=e=>e,kV=e=>e,RV=e=>e;function ck(){const e=t=>t;return new Proxy(e,{get(){return e}})}const jn=ck(),Ch=ck(),tb=e=>e,OV=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function jV(e){return`${e}`.replace(OV,t=>`\\${t}`)}const TV=/[A-Z]/g;function zV(e){return e.replace(TV,t=>`-${t.toLowerCase()}`)}function uk(e,t={}){const{fallback:a="",prefix:i=""}=t,l=zV(["-",i,jV(e)].filter(Boolean).join("-"));return{var:l,ref:`var(${l}${a?`, ${a}`:""})`}}const _V=e=>/^var\(--.+\)$/.test(e),$n=(e,t)=>t!=null?`${e}(${t})`:t,ql=e=>{if(_V(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},g1=e=>({values:["outside","inside","mixed","none"],transform(t,{token:a}){const i=a("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":i,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":i,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":i,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":i,[e]:{outline:"none"}}}[t]??{}}}),AV=Wt("borderColor"),yo=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),IV=SV({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),Hs=uk("bg-currentcolor"),p1=e=>e===Hs.ref||e==="currentBg",Ft=e=>({...e("colors"),currentBg:Hs}),NV=tb({conditions:IV,utilities:{background:{values:Ft,shorthand:["bg"],transform(e,t){if(p1(t.raw))return{background:Hs.ref};const a=Wt("background")(e,t);return{...a,[Hs.var]:a?.background}}},backgroundColor:{values:Ft,shorthand:["bgColor"],transform(e,t){if(p1(t.raw))return{backgroundColor:Hs.ref};const a=Wt("backgroundColor")(e,t);return{...a,[Hs.var]:a?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}}},backgroundGradient:{shorthand:["bgGradient"],values(e){return{...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}},transform(e){return{"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e}}},gradientFrom:{values:Ft,transform:Wt("--gradient-from")},gradientTo:{values:Ft,transform:Wt("--gradient-to")},gradientVia:{values:Ft,transform(e,t){return{...Wt("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:Ft,transform:Wt("borderColor")},borderTopColor:{values:Ft,transform:Wt("borderTopColor")},borderBlockStartColor:{values:Ft,transform:Wt("borderBlockStartColor")},borderBottomColor:{values:Ft,transform:Wt("borderBottomColor")},borderBlockEndColor:{values:Ft,transform:Wt("borderBlockEndColor")},borderLeftColor:{values:Ft,transform:Wt("borderLeftColor")},borderInlineStartColor:{values:Ft,shorthand:["borderStartColor"],transform:Wt("borderInlineStartColor")},borderRightColor:{values:Ft,transform:Wt("borderRightColor")},borderInlineEndColor:{values:Ft,shorthand:["borderEndColor"],transform:Wt("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:Ft,transform:Wt("color")},fill:{values:Ft,transform:Wt("fill")},stroke:{values:Ft,transform:Wt("stroke")},accentColor:{values:Ft,transform:Wt("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:Ft,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":AV(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:Ft,transform:Wt("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform(e){return e!=="auto"?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}}},blur:{values:"blurs",transform:e=>({"--blur":$n("blur",e)})},brightness:{transform:e=>({"--brightness":$n("brightness",e)})},contrast:{transform:e=>({"--contrast":$n("contrast",e)})},grayscale:{transform:e=>({"--grayscale":$n("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":$n("hue-rotate",ql(e))})},invert:{transform:e=>({"--invert":$n("invert",e)})},saturate:{transform:e=>({"--saturate":$n("saturate",e)})},sepia:{transform:e=>({"--sepia":$n("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":$n("drop-shadow",e)})},backdropFilter:{transform(e){return e!=="auto"?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":$n("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":$n("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":$n("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":$n("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":$n("hue-rotate",ql(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":$n("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":$n("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":$n("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":$n("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:Ft,transform:Wt("outlineColor")},focusRing:g1("&:is(:focus, [data-focus])"),focusVisibleRing:g1("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:Ft,transform:Wt("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:a})=>({[a.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:a}){return{[a.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:Ft,transform:Wt("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:Ft,transform:Wt("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:Ft,transform:Wt("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:Ft,transform:Wt("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return e==="auto"&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),e==="auto-gpu"&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":ql(e)})},skewY:{transform:e=>({"--skew-y":ql(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform(e){return e!=="auto"?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}}},spaceXReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}}}},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}}}},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform(e){return e!=="auto"?{rotate:ql(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":ql(e)}}},rotateY:{transform(e){return{"--rotate-y":ql(e)}}},translate:{transform(e){return e!=="auto"?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return yo("all");case"position":return yo("left, right, top, bottom, inset-inline, inset-block");case"colors":return yo("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return yo("opacity");case"shadow":return yo("box-shadow");case"transform":return yo("transform");case"size":return yo("width, height");case"backgrounds":return yo("background, background-color, background-image, background-position");case"common":return yo("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform(e){return e===!0?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}}},lineClamp:{transform(e){return e==="none"?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform(e){return{"--border-spacing-x":e}}},borderSpacingY:{values:"spacing",transform(e){return{"--border-spacing-y":e}}},srOnly:{values:{type:"boolean"},transform(e){return VV[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:Ft,transform:Wt("caretColor")},cursor:{values:"cursor"}}}),VV={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var LV="",MV=LV.split(","),DV="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",PV=DV.split(",").concat(MV),UV=new Map(PV.map(e=>[e,!0]));function $V(e){const t=Object.create(null);return a=>(t[a]===void 0&&(t[a]=e(a)),t[a])}var HV=/&|@/,BV=$V(e=>UV.has(e)||e.startsWith("--")||HV.test(e));function ni(e,t){const a={};for(const i in e){const l=t(i,e[i]);a[l[0]]=l[1]}return a}function dk(e,t){const a={};return Mi(e,(i,l)=>{i&&(a[l.join(".")]=i.value)},{stop:t}),a}var FV=Object.defineProperty,WV=(e,t,a)=>t in e?FV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,m1=(e,t,a)=>WV(e,typeof t!="symbol"?t+"":t,a);function th(e){if(e===null)return"null";if(e===void 0)return"undefined";const t=typeof e;return t==="string"?`s:${e}`:t==="number"?`n:${e}`:t==="boolean"?`b:${e}`:t==="function"?`f:${e.name||"anonymous"}`:Array.isArray(e)?`a:[${e.map(th).join(",")}]`:t==="object"?`o:{${Object.keys(e).sort().map(i=>`${i}:${th(e[i])}`).join(",")}}`:String(e)}class GV{constructor(t=500){m1(this,"cache",new Map),m1(this,"maxSize"),this.maxSize=t}get(t){const a=this.cache.get(t);return a!==void 0&&(this.cache.delete(t),this.cache.set(t,a)),a}set(t,a){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){const i=this.cache.keys().next().value;i!==void 0&&this.cache.delete(i)}this.cache.set(t,a)}clear(){this.cache.clear()}}const Fa=e=>{const t=new GV;function a(...i){const l=i.length===1?th(i[0]):i.map(th).join("|");let c=t.get(l);return c===void 0&&(c=e.apply(this,i),t.set(l,c)),c}return a},fk=16,nh="px",nb="em",wu="rem";function hk(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),a=new RegExp(`${nh}|${nb}|${wu}`);return e.match(new RegExp(`${t.source}(${a.source})`))?.[1]}function gk(e=""){if(typeof e=="number")return`${e}px`;const t=hk(e);if(!t||t===nh)return e;if(t===nb||t===wu)return`${parseFloat(e)*fk}${nh}`}function pk(e=""){const t=hk(e);if(!t||t===wu)return e;if(t===nb)return`${parseFloat(e)}${wu}`;if(t===nh)return`${parseFloat(e)/fk}${wu}`}const qV=e=>e.charAt(0).toUpperCase()+e.slice(1);function YV(e){const t=XV(e),a=Object.fromEntries(t);function i(S){return a[S]}function l(S){return Ms(i(S))}function c(){const S=Object.keys(a),C=KV(S),O=S.flatMap(w=>{const T=i(w),A=[`${w}Down`,Ms({max:Uf(T.min)})],_=[w,Ms({min:T.min})],I=[`${w}Only`,l(w)];return[_,I,A]}).filter(([,w])=>w!=="").concat(C.map(([w,T])=>{const A=i(w),_=i(T);return[`${w}To${qV(T)}`,Ms({min:A.min,max:Uf(_.min)})]}));return Object.fromEntries(O)}function d(){const S=c();return Object.fromEntries(Object.entries(S))}const h=d(),p=S=>h[S];function b(){return y0(["base",...Object.keys(a)])}function v(S){return Ms({min:i(S).min})}function x(S){return Ms({max:Uf(i(S).min)})}return{values:Object.values(a),only:l,keys:b,conditions:h,getCondition:p,up:v,down:x}}function Uf(e){const t=parseFloat(gk(e)??"")-.04;return pk(`${t}px`)}function XV(e){return Object.entries(e).sort(([,a],[,i])=>parseInt(a,10){let d=null;return l<=c.length-1&&(d=c[l+1]?.[1]),d!=null&&(d=Uf(d)),[a,{name:a,min:pk(i),max:d}]})}function KV(e){const t=[];return e.forEach((a,i)=>{let l=i;l++;let c=e[l];for(;c;)t.push([a,c]),l++,c=e[l]}),t}function Ms({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const ZV=/^@|&|&$/,QV=e=>{const{breakpoints:t,conditions:a={}}=e,i=ni(a,(v,x)=>[`_${v}`,x]),l=Object.assign({},i,t.conditions);function c(){return Object.keys(l)}function d(v){return c().includes(v)||ZV.test(v)||v.startsWith("_")}const h=Fa(v=>v.filter(x=>x!=="base").sort((x,S)=>{const C=d(x),O=d(S);return C&&!O?1:!C&&O?-1:0}));function p(v){return v.startsWith("@breakpoint")?t.getCondition(v.replace("@breakpoint ","")):v}function b(v){return Reflect.get(l,v)||v}return{keys:c,sort:h,has:d,resolve:b,breakpoints:t.keys(),expandAtRule:p}},Yt=Object.freeze(Object.create(null)),JV=Object.freeze([]);function Eh(){return Object.create(null)}const mk=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.| +)+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.| +)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),eL=mk("width"),tL=mk("height"),bk=e=>({isMin:C1(e.minMax,e.maxMin,e.min),isMax:C1(e.maxMin,e.minMax,e.max)}),{isMin:e0,isMax:b1}=bk(eL),{isMin:t0,isMax:v1}=bk(tL),x1=/print/i,y1=/^print$/i,nL=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,aL=/(\d)/,Eu=Number.MAX_VALUE,rL={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function S1(e){const t=nL.exec(e)||(e0(e)||t0(e)?aL.exec(e):null);if(!t)return Eu;if(t[0]==="0")return 0;const a=parseFloat(t[1]),i=t[2];return a*(rL[i]||1)}function C1(e,t,a){return i=>e.test(i)||!t.test(i)&&a.test(i)}function iL(e,t){const a=x1.test(e),i=y1.test(e),l=x1.test(t),c=y1.test(t);return a&&l?!i&&c?1:i&&!c?-1:e.localeCompare(t):a?1:l?-1:null}const oL=Fa((e,t)=>{const a=iL(e,t);if(a!==null)return a;const i=e0(e)||t0(e),l=b1(e)||v1(e),c=e0(t)||t0(t),d=b1(t)||v1(t);if(i&&d)return-1;if(l&&c)return 1;const h=S1(e),p=S1(t);return h===Eu&&p===Eu?e.localeCompare(t):h===Eu?1:p===Eu?-1:h!==p?h>p?l?-1:1:l?1:-1:e.localeCompare(t)});function E1(e){return e.sort(([t],[a])=>oL(t,a))}function vk(e){const t=[],a=[],i={};for(const[d,h]of Object.entries(e))d.startsWith("@media")?t.push([d,h]):d.startsWith("@container")?a.push([d,h]):Ba(h)?i[d]=vk(h):i[d]=h;const l=E1(t),c=E1(a);return{...i,...Object.fromEntries(l),...Object.fromEntries(c)}}const xk=/\s*!(important)?/i,lL=Fa(e=>pr(e)?xk.test(e):!1),sL=Fa(e=>pr(e)?e.replace(xk,"").trim():e);function yk(e){const{transform:t,conditions:a,normalize:i}=e,l=dL(e);return Fa(function(...d){const h=l(...d),p=i(h),b=Eh();return Mi(p,(v,x)=>{const S=lL(v);if(v==null)return;const[C,...O]=a.sort(x).map(a.resolve);S&&(v=sL(v));let w=t(C,v)??Yt;w=Mi(w,T=>pr(T)&&S?`${T} !important`:T,{getKey:T=>a.expandAtRule(T)}),cL(b,O.flat(),w)}),vk(b)})}function cL(e,t,a){let i=e;for(const l of t)l&&(i[l]||(i[l]=Eh()),i=i[l]);fc(i,a)}function uL(...e){return e.filter(t=>{if(!Ba(t))return!1;const a=lc(t);return Object.keys(a).length>0})}function dL(e){function t(a){const i=uL(...a);return i.length===1?i:i.map(l=>e.normalize(l))}return Fa(function(...i){return fc({},...t(i))})}const Sk=e=>({base:Yt,variants:Yt,defaultVariants:Yt,compoundVariants:[],...e});function fL(e){const{css:t,conditions:a,normalize:i,layers:l}=e;function c(h={}){const p=Sk(h),{base:b,defaultVariants:v,compoundVariants:x}=p,S=ni(p.variants,(I,M)=>[I,ni(M,(R,V)=>[R,i(V)])]),C=yk({conditions:a,normalize:i,transform(I,M){return S[I]?.[M]}}),O=(I={})=>{const M=i({...v,...lc(I)});let R={...b};fc(R,C(M));const V=d(x,M);return l.wrap("recipes",t(R,V))},w=Object.keys(S),T=I=>{const M=eb(I,["recipe"]),[R,V]=Gs(M,w),P=w.includes("colorPalette"),F=w.includes("orientation");return P||(R.colorPalette=I.colorPalette||v.colorPalette),F&&(V.orientation=I.orientation),[R,V]},A=ni(S,(I,M)=>[I,Object.keys(M)]);return Object.assign(I=>t(O(I)),{className:h.className,__cva__:!0,variantMap:A,variantKeys:w,raw:O,config:h,splitVariantProps:T,merge(I){return c(hL(e)(this,I))}})}function d(h,p){let b=Yt;return h.forEach(v=>{Object.entries(v).every(([S,C])=>S==="css"?!0:(Array.isArray(C)?C:[C]).some(w=>p[S]===w))&&(b=t(b,v.css))}),b}return c}function hL(e){const{css:t}=e;return function(i,l){const c=Sk(l.config),d=y0(i.variantKeys,Object.keys(l.variants)),h=t(i.base,c.base),p=Object.fromEntries(d.map(S=>[S,t(i.config.variants[S],c.variants[S])])),b=fc(i.config.defaultVariants,c.defaultVariants),v=[...i.compoundVariants,...c.compoundVariants];return{className:ia(i.className,l.className),base:h,variants:p,defaultVariants:b,compoundVariants:v}}}const gL={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},w1={reset:0,base:1,tokens:2,recipes:3};function pL(e){const t=e.layers??gL,i=Object.values(t).sort((l,c)=>w1[l]-w1[c]);return{names:i,atRule:`@layer ${i.join(", ")};`,wrap(l,c){return e.disableLayers?c:{[`@layer ${t[l]}`]:c}}}}function mL(e){const{utility:t,normalize:a}=e,{hasShorthand:i,resolveShorthand:l}=t;return function(c){return Mi(c,a,{stop:d=>Array.isArray(d),getKey:i?l:void 0})}}function bL(e){const{preflight:t}=e;if(!t)return{};const{scope:a="",level:i="parent"}=Ba(t)?t:{};let l="";a&&i==="parent"?l=`${a} `:a&&i==="element"&&(l=`&${a}`);const c={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},d={[a||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(i==="element"){const h=Object.entries(c).reduce((p,[b,v])=>(p[b]={[l]:v},p),{});Object.assign(d,h)}else l?d[l]=c:Object.assign(d,c);return d}function vL(e){const{conditions:t,isValidProperty:a}=e;return function(l){return Mi(l,c=>c,{getKey:(c,d)=>Ba(d)&&!t.has(c)&&!a(c)?yL(c).map(h=>{const p=h.startsWith("&")?h.slice(1):h;return xL(p)?`${p} &`:`&${p}`}).join(", "):c})}}function xL(e){const t=e.toLowerCase();return t.startsWith(":host-context")||t.startsWith(":host")||t.startsWith("::slotted")}function yL(e){const t=[];let a=0,i="",l=!1;for(let c=0;c{const t=l=>({base:e.base?.[l]??Yt,variants:Eh(),defaultVariants:e.defaultVariants??Yt,compoundVariants:e.compoundVariants?CL(e.compoundVariants,l):JV}),i=(e.slots??[]).map(l=>[l,t(l)]);for(const[l,c]of Object.entries(e.variants??{}))for(const[d,h]of Object.entries(c))i.forEach(([p,b])=>{var v;(v=b.variants)[l]??(v[l]={}),b.variants[l][d]=h[p]??Yt});return Object.fromEntries(i)},CL=(e,t)=>e.filter(a=>a.css[t]).map(a=>({...a,css:a.css[t]}));function EL(e){const{cva:t}=e;return function(i=Yt){const l=Object.entries(SL(i)).map(([x,S])=>[x,t(S)]);function c(x){const S=l.map(([C,O])=>[C,O(x)]);return Object.fromEntries(S)}const d=i.variants??Yt,h=Object.keys(d);function p(x){const S=eb(x,["recipe"]),[C,O]=Gs(S,h),w=h.includes("colorPalette"),T=h.includes("orientation");return w||(C.colorPalette=x.colorPalette||i.defaultVariants?.colorPalette),T&&(O.orientation=x.orientation),[C,O]}const b=ni(d,(x,S)=>[x,Object.keys(S)]);let v={};return i.className&&(v=Object.fromEntries(i.slots.map(x=>[x,`${i.className}__${x}`]))),Object.assign(c,{variantMap:b,variantKeys:h,splitVariantProps:p,classNameMap:v})}}const wL=()=>e=>Array.from(new Set(e)),kL=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,RL=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Ck=e=>(e+"").replace(kL,RL),Ek=(e,t)=>{let a="",i=0,l="char",c="",d="";const h=[];for(;i{let t=0;const a=["("];for(;t{a instanceof Map?t[i]=Object.fromEntries(a):t[i]=a}),t}const kk=/({([^}]*)})/g,jL=/[{}]/g,TL=/\w+\.\w+/,Rk=e=>{if(!pr(e))return[];const t=e.match(kk);return t?t.map(a=>a.replace(jL,"").trim()):[]},zL=e=>kk.test(e);function Ok(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};let a=e.value;const i=Object.keys(t);for(let l=0;lt.map(jk).join(` ${e} `).replace(_L,""),k1=(...e)=>`calc(${wh("+",...e)})`,R1=(...e)=>`calc(${wh("-",...e)})`,n0=(...e)=>`calc(${wh("*",...e)})`,O1=(...e)=>`calc(${wh("/",...e)})`,j1=e=>{const t=jk(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:n0(t,-1)},Us=Object.assign(e=>({add:(...t)=>Us(k1(e,...t)),subtract:(...t)=>Us(R1(e,...t)),multiply:(...t)=>Us(n0(e,...t)),divide:(...t)=>Us(O1(e,...t)),negate:()=>Us(j1(e)),toString:()=>e.toString()}),{add:k1,subtract:R1,multiply:n0,divide:O1,negate:j1}),AL={enforce:"pre",transform(e){const{prefix:t,allTokens:a,formatCssVar:i,formatTokenName:l,registerToken:c}=e;a.filter(({extensions:h})=>h.category==="spacing").forEach(h=>{const p=h.path.slice(),b=i(p,t);if(pr(h.value)&&h.value==="0rem")return;const v=[...h.path],x=v[v.length-1];x!=null&&(v[v.length-1]=`-${x}`);const S={...h,value:Us.negate(b.ref),name:l(v),path:v,extensions:{...h.extensions,negative:!0,prop:`-${h.extensions.prop}`,originalPath:p}};c(S)})}},IL=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),NL={enforce:"post",transform(e){e.allTokens.filter(a=>IL.has(a.extensions.category)&&!a.extensions.negative).forEach(a=>{Object.assign(a.extensions,{pixelValue:gk(a.value)})})}},VL={enforce:"post",transform(e){const{allTokens:t,registerToken:a,formatTokenName:i}=e,l=t.filter(({extensions:h})=>h.category==="colors"),c=new Map,d=new Map;l.forEach(h=>{const{colorPalette:p}=h.extensions;p&&(p.keys.forEach(b=>{c.set(i(b),b)}),p.roots.forEach(b=>{const v=i(b),x=d.get(v)||[];if(x.push(h),d.set(v,x),h.extensions.default&&b.length===1){const S=p.keys[0]?.filter(Boolean);if(!S.length)return;const C=b.concat(S);c.set(i(C),[])}}))}),c.forEach(h=>{const p=["colors","colorPalette",...h].filter(Boolean),b=i(p),v=i(p.slice(1));a({name:b,value:b,originalValue:b,path:p,extensions:{condition:"base",originalPath:p,category:"colors",prop:v,virtual:!0}},"pre")})}},LL={enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}},ML=[AL,VL,NL,LL],DL={type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:a,formatCssVar:i}=t,{negative:l,originalPath:c}=e.extensions,d=l?c:e.path;return{cssVar:i(d.filter(Boolean),a)}}},PL={enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:a,formatCssVar:i}=t,l=Rk(e.value);return l.length&&l.forEach(c=>{const d=i(c.split("."),a);e.value=e.value.replace(`{${d.ref}}`,d)}),e.value}},UL={type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let a=e.path.slice();if(a.pop(),a.shift(),a.length===0){const h=[...e.path];h.shift(),a=h}if(a.length===0)return{};const i=a.reduce((h,p,b,v)=>{const x=v.slice(0,b+1);return h.push(x),h},[]),l=a[0],c=t.formatTokenName(a),d=e.path.slice(e.path.indexOf(l)+1).reduce((h,p,b,v)=>(h.push(v.slice(b)),h),[]);return d.length===0&&d.push([""]),{colorPalette:{value:c,roots:i,keys:d}}}},$L=[DL,PL,UL],T1=e=>Ba(e)&&Object.prototype.hasOwnProperty.call(e,"value");function HL(e){return e?{breakpoints:hc(e,t=>({value:t})),sizes:ni(e,(t,a)=>[`breakpoint-${t}`,{value:a}])}:{breakpoints:{},sizes:{}}}function BL(e){const{prefix:t="",tokens:a={},semanticTokens:i={},breakpoints:l={}}=e,c=ee=>ee.join("."),d=(ee,ne)=>uk(ee.join("-"),{prefix:ne}),h=[],p=new Map,b=new Map,v=new Map,x=new Map,S=new Map,C=new Map,O=new Map,w=new Map,T=[];function A(ee,ne){h.push(ee),p.set(ee.name,ee),ne&&w.forEach(Te=>{Te.enforce===ne&&Ee(Te,ee)})}const _=HL(l),I=lc({...a,breakpoints:_.breakpoints,sizes:{...a.sizes,..._.sizes}});function M(){Mi(I,(ee,ne)=>{const Te=ne.includes("DEFAULT");ne=z1(ne);const se=ne[0],ye=c(ne),ke=pr(ee)?{value:ee}:ee,Xe={value:ke.value,originalValue:ke.value,name:ye,path:ne,extensions:{condition:"base",originalPath:ne,category:se,prop:c(ne.slice(1))}};Te&&(Xe.extensions.default=!0),A(Xe)},{stop:T1}),Mi(i,(ee,ne)=>{const Te=ne.includes("DEFAULT");ne=Tk(z1(ne));const se=ne[0],ye=c(ne),ke=pr(ee.value)?{value:{base:ee.value}}:ee,Xe={value:ke.value.base||"",originalValue:ke.value.base||"",name:ye,path:ne,extensions:{originalPath:ne,category:se,conditions:ke.value,condition:"base",prop:c(ne.slice(1))}};Te&&(Xe.extensions.default=!0),A(Xe)},{stop:T1})}function R(ee){return p.get(ee)}function V(ee){const{condition:ne}=ee.extensions;ne&&(b.has(ne)||b.set(ne,new Set),b.get(ne).add(ee))}function P(ee){const{category:ne,prop:Te}=ee.extensions;ne&&(O.has(ne)||O.set(ne,new Map),O.get(ne).set(Te,ee))}function F(ee){const{condition:ne,negative:Te,virtual:se,cssVar:ye}=ee.extensions;Te||se||!ne||!ye||(v.has(ne)||v.set(ne,new Map),v.get(ne).set(ye.var,ee.value))}function B(ee){const{category:ne,prop:Te,cssVar:se,negative:ye}=ee.extensions;if(!ne)return;C.has(ne)||C.set(ne,new Map);const ke=ye?ee.extensions.conditions?ee.originalValue:ee.value:se.ref;C.get(ne).set(Te,ke),S.set([ne,Te].join("."),ke)}function W(ee){const{colorPalette:ne,virtual:Te,default:se}=ee.extensions;!ne||Te||ne.roots.forEach(ye=>{const ke=c(ye);x.has(ke)||x.set(ke,new Map);const Xe=WL([...ee.path],[...ye]),pe=c(Xe),_e=R(pe);if(!_e||!_e.extensions.cssVar)return;const{var:qe}=_e.extensions.cssVar;if(x.get(ke).set(qe,ee.extensions.cssVar.ref),se&&ye.length===1){const Ke=c(["colors","colorPalette"]),jt=R(Ke);if(!jt)return;const ft=c(ee.path),tt=R(ft);if(!tt)return;const on=ne.keys[0]?.filter(Boolean);if(!on.length)return;const ma=c(ye.concat(on));x.has(ma)||x.set(ma,new Map),x.get(ma).set(jt.extensions.cssVar.var,tt.extensions.cssVar.ref)}})}let Y={};function U(){h.forEach(ee=>{V(ee),P(ee),F(ee),B(ee),W(ee)}),Y=wk(C)}const be=(ee,ne)=>{if(!ee||typeof ee!="string")return{invalid:!0,value:ee};const[Te,se]=ee.split("/");if(!Te||!se)return{invalid:!0,value:Te};const ye=ne(Te),ke=R(`opacity.${se}`)?.value;if(!ke&&isNaN(Number(se)))return{invalid:!0,value:Te};const Xe=ke?Number(ke)*100+"%":`${se}%`,pe=ye??Te;return{invalid:!1,color:pe,value:`color-mix(in srgb, ${pe} ${Xe}, transparent)`}},de=Fa((ee,ne)=>S.get(ee)??ne),ve=Fa(ee=>Y[ee]||null),N=Fa(ee=>Ek(ee,ne=>{if(!ne)return;if(ne.includes("/")){const se=be(ne,ye=>de(ye));if(se.invalid)throw new Error("Invalid color mix at "+ne+": "+se.value);return se.value}const Te=de(ne);return Te||(TL.test(ne)?Ck(ne):ne)})),te={prefix:t,allTokens:h,tokenMap:p,registerToken:A,getByName:R,formatTokenName:c,formatCssVar:d,flatMap:S,cssVarMap:v,categoryMap:O,colorPaletteMap:x,getVar:de,getCategoryValues:ve,expandReferenceInValue:N};function oe(...ee){ee.forEach(ne=>{w.set(ne.name,ne)})}function le(...ee){T.push(...ee)}function Ee(ee,ne){if(ne.extensions.references||x0(ee.match)&&!ee.match(ne))return;const se=(ye=>ee.transform(ye,te))(ne);switch(!0){case ee.type==="extensions":Object.assign(ne.extensions,se);break;case ee.type==="value":ne.value=se;break;default:ne[ee.type]=se;break}}function k(ee){T.forEach(ne=>{ne.enforce===ee&&ne.transform(te)})}function L(ee){w.forEach(ne=>{ne.enforce===ee&&h.forEach(Te=>{Ee(ne,Te)})})}function G(){h.forEach(ee=>{const ne=FL(ee);!ne||ne.length===0||ne.forEach(Te=>{A(Te)})})}function X(ee){const ne=Rk(ee),Te=[];for(let se=0;se{if(!zL(ee.value))return;const ne=X(ee.value);ee.extensions.references=ne.reduce((Te,se)=>(Te[se.name]=se,Te),{})})}function ae(){h.forEach(ee=>{Ok(ee)})}function ge(){k("pre"),L("pre"),G(),xe(),ae(),k("post"),L("post"),U()}return M(),oe(...$L),le(...ML),ge(),te}function z1(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function Tk(e){return e.filter(t=>t!=="base")}function FL(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,a=[];return Mi(t,(i,l)=>{const c=Tk(l);if(!c.length)return;const d={...e,value:i,extensions:{...e.extensions,condition:c.join(":")}};a.push(d)}),a}function WL(e,t){const a=e.findIndex((i,l)=>t.every((c,d)=>e[l+d]===c));return a===-1||(e.splice(a,t.length),e.splice(a,0,"colorPalette")),e}wL()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function GL(e){return ni(e,(t,a)=>[t,a])}function qL(e){const t=GL(e.config),a=e.tokens,i=new Map,l=new Map;function c(F,B){t[F]=B,d(F,B)}const d=(F,B)=>{const W=w(B);W&&(l.set(F,W),x(F,B))},h=()=>{for(const[F,B]of Object.entries(t))B&&d(F,B)},p=()=>{for(const[F,B]of Object.entries(t)){const{shorthand:W}=B??{};if(!W)continue;(Array.isArray(W)?W:[W]).forEach(U=>i.set(U,F))}},b=()=>{const F=wk(a.colorPaletteMap);c("colorPalette",{values:Object.keys(F),transform:Fa(B=>F[B])})},v=new Map,x=(F,B)=>{if(!B)return;const W=w(B,U=>`type:Tokens["${U}"]`);if(typeof W=="object"&&W.type){v.set(F,new Set([`type:${W.type}`]));return}if(W){const U=new Set(Object.keys(W));v.set(F,U)}const Y=v.get(F)??new Set;B.property&&v.set(F,Y.add(`CssProperties["${B.property}"]`))},S=()=>{for(const[F,B]of Object.entries(t))B&&x(F,B)},C=(F,B)=>{const W=v.get(F)??new Set;v.set(F,new Set([...W,...B]))},O=()=>{const F=new Map;for(const[B,W]of v.entries()){if(W.size===0){F.set(B,["string"]);continue}const Y=Array.from(W).map(U=>U.startsWith("CssProperties")?U:U.startsWith("type:")?U.replace("type:",""):JSON.stringify(U));F.set(B,Y)}return F},w=(F,B)=>{const{values:W}=F,Y=U=>{const be=B?.(U);return be?{[be]:be}:void 0};if(pr(W))return Y?.(W)??a.getCategoryValues(W)??Yt;if(Array.isArray(W)){const U={};for(let be=0;be({[F]:F.startsWith("--")?a.getVar(B,B):B})),A=Object.assign(a.getVar,{raw:F=>a.getByName(F)}),_=Fa((F,B)=>{const W=R(F);pr(B)&&!B.includes("_EMO_")&&(B=a.expandReferenceInValue(B));const Y=t[W];if(!Y)return T(W,B);const U=l.get(W)?.[B];if(!Y.transform)return T(F,U??B);const be=de=>xV(de,A);return Y.transform(U??B,{raw:B,token:A,utils:{colorMix:be}})});function I(){p(),b(),h(),S()}I();const M=i.size>0,R=Fa(F=>i.get(F)??F);return{keys:()=>[...Array.from(i.keys()),...Object.keys(t)],hasShorthand:M,transform:_,shorthands:i,resolveShorthand:R,register:c,getTypes:O,addPropertyType:C}}function zk(...e){const t=sk(...e),{theme:a={},utilities:i={},globalCss:l={},cssVarsRoot:c=":where(:root, :host)",cssVarsPrefix:d="chakra",preflight:h}=t,p=pL(t),b=BL({breakpoints:a.breakpoints,tokens:a.tokens,semanticTokens:a.semanticTokens,prefix:d}),v=YV(a.breakpoints??Yt),x=QV({conditions:t.conditions??Yt,breakpoints:v}),S=qL({config:i,tokens:b});function C(){const{textStyles:le,layerStyles:Ee,animationStyles:k}=a,L=lc({textStyle:le,layerStyle:Ee,animationStyle:k});for(const[G,X]of Object.entries(L)){const xe=dk(X??Yt,_k);S.register(G,{values:Object.keys(xe),transform(ae){return I(xe[ae])}})}}C(),S.addPropertyType("animationName",Object.keys(a.keyframes??Yt));const O=new Set(["css",...S.keys(),...x.keys()]),w=Fa(le=>O.has(le)||BV(le)),T=le=>{if(Array.isArray(le)){const Ee=Eh();for(let k=0;k[`@keyframes ${k}`,L]),Ee=Object.assign({},le,I(_(l)));return p.wrap("base",Ee)}function F(le){return Gs(le,w)}function B(){const le=bL({preflight:h});return p.wrap("reset",le)}const W=YL(b),Y=(le,Ee)=>W.get(le)?.value||Ee;Y.var=(le,Ee)=>W.get(le)?.variable||Ee;function U(le,Ee){return a.recipes?.[le]??Ee}function be(le,Ee){return a.slotRecipes?.[le]??Ee}function de(le){return Object.hasOwnProperty.call(a.recipes??Yt,le)}function ve(le){return Object.hasOwnProperty.call(a.slotRecipes??Yt,le)}function N(le){return de(le)||ve(le)}const te=[B(),P(),V()],oe={layerStyles:hm(a.layerStyles??Yt),textStyles:hm(a.textStyles??Yt),animationStyles:hm(a.animationStyles??Yt),tokens:_1(b,Object.keys(a.tokens??Yt),(le,Ee)=>!le.extensions.conditions&&!Ee.includes("colorPalette")),semanticTokens:_1(b,Object.keys(a.semanticTokens??Yt),le=>!!le.extensions.conditions),keyframes:A1(a.keyframes??Yt),breakpoints:A1(a.breakpoints??Yt)};return{$$chakra:!0,_config:t,_global:te,breakpoints:v,tokens:b,conditions:x,utility:S,token:Y,properties:O,layers:p,isValidProperty:w,splitCssProps:F,normalizeValue:T,getTokenCss:V,getGlobalCss:P,getPreflightCss:B,css:I,cva:M,sva:R,getRecipe:U,getSlotRecipe:be,hasRecipe:N,isRecipe:de,isSlotRecipe:ve,query:oe}}function YL(e){const t=new Map;return e.allTokens.forEach(a=>{const{cssVar:i,virtual:l,conditions:c}=a.extensions,d=c||l?i.ref:a.value;t.set(a.name,{value:d,variable:i.ref})}),t}const _k=e=>Ba(e)&&"value"in e,hm=e=>({list(){return Object.keys(dk(e,_k))},search(t){return this.list().filter(a=>a.includes(t))}}),_1=(e,t,a)=>({categoryKeys:t,list(i){const l=e.categoryMap.get(i),c=l?[...l.entries()]:[],d=[];for(let h=0;hc.includes(l))}}),A1=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(a=>a.includes(t))}}),XL={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},gm="var(--chakra-empty,/*!*/ /*!*/)",KL=EV({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":gm,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,gm])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,gm])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}}),ZL=RV({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),QL=kV({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),ab=Vn({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),JL=Vn({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px","--outline-color-legacy":"colors.colorPalette.muted","--outline-color":"colors.colorPalette.border",borderColor:"var(--outline-color, var(--outline-color-legacy))",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),na=Vn({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:eM,defaultVariants:tM}=ab,nM=Vn({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:eM,defaultVariants:tM}),Ak=Vn({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),aM=Vn({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),rM=Vn({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),iM=Vn({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),kn=Vn({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),oM=Vn({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:kn.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),lM=Vn({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),sM=Vn({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),cM=Vn({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),aa=Vn({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),uM=Vn({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),dM=Vn({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),fM=Vn({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),hM=Vn({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),gM=Vn({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),pM={badge:ab,button:JL,code:nM,container:aM,heading:rM,input:kn,inputAddon:oM,kbd:lM,link:sM,mark:cM,separator:uM,skeleton:dM,skipNavLink:fM,spinner:hM,textarea:gM,icon:iM,checkmark:na,radiomark:aa,colorSwatch:Ak},mM=Ch.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}},border:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}},border:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}},border:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}},border:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}},border:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}},border:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}},border:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.400}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}},border:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.400}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}},border:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.400}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}},border:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.400}"}}}}),bM=Ch.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),vM=Ch.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),xM=AE.extendWith("itemBody"),yM=He("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),SM=He("alert").parts("title","description","root","indicator","content"),CM=He("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),EM=He("blockquote").parts("root","icon","content","caption"),wM=He("card").parts("root","header","body","footer","title","description"),kM=He("checkbox-card",["root","control","label","description","addon","indicator","content"]),RM=He("data-list").parts("root","item","itemLabel","itemValue"),OM=K0.extendWith("header","body","footer","backdrop"),jM=K0.extendWith("header","body","footer","backdrop"),TM=lw.extendWith("textarea"),zM=He("empty-state",["root","content","indicator","title","description"]),_M=cw.extendWith("requiredIndicator"),AM=dw.extendWith("content"),IM=fw.extendWith("itemContent","dropzoneContent","fileText"),NM=He("list").parts("root","item","indicator"),VM=xw.extendWith("itemCommand"),LM=He("select").parts("root","field","indicator"),MM=jw.extendWith("header","body","footer"),Ik=J0.extendWith("itemAddon","itemIndicator"),DM=Ik.extendWith("itemContent","itemDescription"),PM=zw.extendWith("itemIndicator"),UM=Iw.extendWith("indicatorGroup"),$M=fI.extendWith("indicatorGroup","empty"),HM=Hw.extendWith("markerIndicator"),BM=He("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),FM=He("status").parts("root","indicator"),WM=He("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),GM=ak.extendWith("indicator"),qM=He("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),YM=He("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),XM=He("tabs").parts("root","trigger","list","content","contentGroup","indicator"),KM=He("tag").parts("root","label","closeTrigger","startElement","endElement"),ZM=He("timeline").parts("root","item","content","separator","indicator","connector","title","description"),QM=N5.extendWith("channelText"),JM=He("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]),e3=_E.extendWith("resizeTriggerSeparator","resizeTriggerIndicator");KE.extendWith("valueText");const t3=jI,n3=Fe({className:"chakra-accordion",slots:xM.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),a3=Fe({className:"chakra-action-bar",slots:yM.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),r3=Fe({slots:SM.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),i3=Fe({slots:VE.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",borderColor:"var(--outline-shadow, var(--outline-shadow-legacy))"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),o3=Fe({className:"chakra-blockquote",slots:EM.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),l3=Fe({className:"chakra-breadcrumb",slots:CM.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),s3=Fe({className:"chakra-card",slots:wM.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}}),c3=Fe({className:"carousel",slots:f5.keys(),base:{root:{position:"relative",display:"flex",gap:"2",_horizontal:{flexDirection:"column"},_vertical:{flexDirection:"row"}},item:{_horizontal:{width:"100%"},_vertical:{height:"100%"}},control:{display:"flex",alignItems:"center",_horizontal:{flexDirection:"row",width:"100%"},_vertical:{flexDirection:"column",height:"100%"}},indicatorGroup:{display:"flex",justifyContent:"center",gap:"3",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},indicator:{width:"2.5",height:"2.5",borderRadius:"full",bg:"colorPalette.subtle",cursor:"button",_current:{bg:"colorPalette.solid"}}},defaultVariants:{}}),u3=Fe({slots:FE.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:na.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:na.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:na.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:na.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:na.variants?.size?.lg}},variant:{outline:{control:na.variants?.variant?.outline},solid:{control:na.variants?.variant?.solid},subtle:{control:na.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),d3=Fe({slots:kM.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:na.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:na.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:na.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:na.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:na.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:na.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:na.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:na.variants?.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),f3=Fe({slots:JM.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflowX:"auto",overflowY:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative",paddingInlineEnd:"var(--code-block-padding)","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",top:"0",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",whiteSpace:"nowrap",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}}),h3=Fe({slots:hE.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"expand-height"}},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"collapse-height"}}}}}),g3=Fe({className:"colorPicker",slots:QM.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...Ak.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...kn.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:kn.variants?.size?.["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:kn.variants?.size?.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:kn.variants?.size?.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:kn.variants?.size?.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:kn.variants?.size?.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:kn.variants?.size?.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:kn.variants?.size?.["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:kn.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:kn.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),p3=Fe({className:"chakra-combobox",slots:$M.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},control:{pos:"relative","--padding-factor":"1","--combobox-input-padding-end":"var(--combobox-input-padding-x)","&:has([data-part=trigger]), &:has([data-part=clear-trigger])":{"--combobox-input-padding-end":"calc(var(--combobox-input-height) * var(--padding-factor))"},"&:has([data-part=trigger]):has([data-part=clear-trigger]:not([hidden]))":{"--padding-factor":"1.5"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",ps:"var(--combobox-input-padding-x)",pe:"var(--combobox-input-padding-end)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),m3=Fe({slots:RM.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),b3=Fe({slots:OM.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),v3=Fe({slots:jM.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),I1=rs({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),x3=Fe({slots:TM.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...I1,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...I1,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),y3=Fe({slots:zM.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),S3=Fe({className:"chakra-field",slots:_M.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),C3=Fe({className:"fieldset",slots:AM.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),E3=Fe({className:"chakra-file-upload",slots:IM.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}}),w3=Fe({className:"chakra-hover-card",slots:hw.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderLeftWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),k3=Fe({className:"chakra-list",slots:NM.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),R3=Fe({className:"chakra-listbox",slots:t3.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}}),O3=Fe({className:"chakra-menu",slots:VM.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),$f=Fe({className:"chakra-select",slots:UM.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}}),j3=Fe({className:"chakra-native-select",slots:LM.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:$f.variants?.variant.outline.trigger},subtle:{field:$f.variants?.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:$f.defaultVariants}),N1=rs({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),T3=Fe({className:"chakra-number-input",slots:ww.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...kn.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...N1,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...N1,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:kn.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:kn.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:kn.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:kn.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:ni(kn.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:V1,defaultVariants:z3}=kn,_3=Fe({className:"chakra-pin-input",slots:Ow.keys(),base:{input:{...kn.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:ni(V1.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:ni(V1.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:z3}),A3=Fe({className:"chakra-popover",slots:MM.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderLeftWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),I3=Fe({slots:Q0.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),N3=Fe({className:"chakra-progress-circle",slots:Q0.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}}),V3=Fe({slots:Tw.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}}),L3=Fe({className:"chakra-radio-card",slots:DM.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:aa.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:aa.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:aa.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:aa.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:aa.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:aa.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:aa.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:aa.variants?.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),M3=Fe({className:"chakra-radio-group",slots:Ik.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:aa.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:aa.variants?.variant?.outline},subtle:{itemControl:aa.variants?.variant?.subtle},solid:{itemControl:aa.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:aa.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:aa.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:aa.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:aa.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),D3=Fe({className:"chakra-rating-group",slots:PM.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),P3=Fe({className:"chakra-scroll-area",slots:_w.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}}),U3=Fe({className:"chakra-segment-group",slots:Aw.keys(),base:{root:{"--segment-radius":"radii.l2","--segment-indicator-bg":{_light:"colors.bg",_dark:"colors.bg.emphasized"},"--segment-indicator-shadow":"shadows.sm",borderRadius:"var(--segment-radius)",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"var(--segment-indicator-shadow)",pos:"absolute",bg:"var(--segment-indicator-bg)",width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),$3=Fe({className:"chakra-slider",slots:HM.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),H3=Fe({slots:e3.keys(),className:"splitter",base:{resizeTrigger:{"--splitter-border-color":"colors.border","--splitter-thumb-color":"colors.bg","--splitter-thumb-size":"sizes.2","--splitter-thumb-inset":"calc(var(--splitter-thumb-size) * -0.5)","--splitter-border-size":"1px","--splitter-handle-size":"sizes.6",outline:"0",display:"grid",placeItems:"center",position:"relative",_focus:{"--splitter-border-color":"colors.border.emphasized","--splitter-thumb-color":"colors.colorPalette.subtle"},_dragging:{"--splitter-thumb-color":"colors.colorPalette.focusRing"},_horizontal:{minWidth:"var(--splitter-thumb-size)",marginInline:"var(--splitter-thumb-inset)"},_vertical:{minHeight:"var(--splitter-thumb-size)",marginBlock:"var(--splitter-thumb-inset)"}},resizeTriggerSeparator:{position:"absolute",bg:"var(--splitter-border-color)","[data-part='resize-trigger'][data-orientation=horizontal] &":{insetInlineEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetBlock:"0",insetInlineStart:"auto",w:"var(--splitter-border-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{insetBlockEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetInline:"0",insetBlockStart:"auto",h:"var(--splitter-border-size)"}},resizeTriggerIndicator:{position:"relative",rounded:"full",bg:"var(--splitter-thumb-color)",shadow:"xs",borderWidth:"1px",zIndex:"1","[data-part='resize-trigger'][data-orientation=horizontal] &":{w:"full",h:"var(--splitter-handle-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{w:"var(--splitter-handle-size)",h:"full"},"[data-part='resize-trigger'][data-focus]:focus-visible &":{outlineWidth:"2px",outlineColor:"colorPalette.focusRing",outlineStyle:"solid"},"[data-part='resize-trigger'][data-disabled] &":{visibility:"hidden"}}}}),B3=Fe({className:"chakra-stat",slots:BM.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),F3=Fe({className:"chakra-status",slots:FM.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),W3=Fe({className:"chakra-steps",slots:WM.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),G3=Fe({slots:GM.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),q3=Fe({className:"chakra-table",slots:qM.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),Y3=Fe({slots:XM.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-trigger-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-trigger-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),yf=ab.variants?.variant,X3=Fe({slots:KM.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:yf?.subtle},solid:{root:yf?.solid},outline:{root:yf?.outline},surface:{root:yf?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),K3=Fe({slots:rk.keys(),className:"tags-input",base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},control:{"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",minH:"var(--tags-input-height)","--input-height":"var(--tags-input-height)",px:"var(--tags-input-px)",py:"var(--tags-input-py)",gap:"var(--tags-input-gap)",display:"flex",flexWrap:"wrap",alignItems:"center",borderRadius:"l2",pos:"relative",transitionProperty:"border-color, box-shadow",transitionDuration:"normal",_disabled:{opacity:"0.5"},_invalid:{borderColor:"var(--error-color)"}},input:{flex:"1",minWidth:"20",outline:"none",bg:"transparent",color:"fg",px:"calc(var(--tags-input-item-px) / 1.25)",height:"var(--tags-input-item-height)",_readOnly:{display:"none"}},item:{maxWidth:"100%",minWidth:"0"},itemText:{lineClamp:"1",minWidth:"0"},itemInput:{outline:"none",bg:"transparent",minWidth:"2ch",color:"inherit",px:"var(--tags-input-item-px)",height:"var(--tags-input-item-height)"},itemPreview:{height:"var(--tags-input-item-height)",userSelect:"none",display:"inline-flex",alignItems:"center",gap:"1",rounded:"l1",px:"var(--tags-input-item-px)",maxWidth:"100%"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:"0",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},me:"-1",opacity:"0.4",_hover:{opacity:"1"},"[data-highlighted] &":{opacity:"1"},_icon:{boxSize:"80%"}},clearTrigger:{display:"flex",alignItems:"center",justifyContent:"center",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},color:"fg.muted",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1",_icon:{boxSize:"5"}}},variants:{size:{xs:{root:{"--tags-input-height":"sizes.8","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"xs"}},sm:{root:{"--tags-input-height":"sizes.9","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"sm"}},md:{root:{"--tags-input-height":"sizes.10","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.7","--tags-input-item-px":"spacing.2",textStyle:"sm"}},lg:{root:{"--tags-input-height":"sizes.11","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.8","--tags-input-item-px":"spacing.2",textStyle:"md"}}},variant:{outline:{control:{borderWidth:"1px",bg:"bg",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}},subtle:{control:{bg:"bg.muted",borderWidth:"1px",borderColor:"transparent",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"bg",borderWidth:"1px",_highlighted:{bg:"colorPalette.subtle",borderColor:"colorPalette.emphasized"}}},flushed:{control:{borderRadius:"0",px:"0",bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",_focus:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}}}},defaultVariants:{size:"md",variant:"outline"}}),Z3=Fe({slots:ZM.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{"--timeline-content-gap":"spacing.6",display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"--timeline-content-gap":"0"}},separator:{display:"var(--timeline-separator-display)",position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"var(--timeline-content-gap)",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},showLastSeparator:{true:{item:{_last:{"--timeline-separator-display":"initial"}}},false:{item:{_last:{"--timeline-separator-display":"none"}}}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid",showLastSeparator:!1}}),Q3=Fe({slots:YM.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}}),J3=Fe({slots:lk.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderLeftWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),L1=rs({display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}}),M1=rs({flex:"1"}),D1=rs({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),P1=rs({_selected:{layerStyle:"fill.solid"}}),e4=Fe({slots:gw.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:L1,item:L1,itemText:M1,branchText:M1,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:D1,item:D1},solid:{branchControl:P1,item:P1}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),t4={accordion:n3,actionBar:a3,alert:r3,avatar:i3,blockquote:o3,breadcrumb:l3,card:s3,carousel:c3,checkbox:u3,checkboxCard:d3,codeBlock:f3,collapsible:h3,dataList:m3,dialog:b3,drawer:v3,editable:x3,emptyState:y3,field:S3,fieldset:C3,fileUpload:E3,hoverCard:w3,list:k3,listbox:R3,menu:O3,nativeSelect:j3,numberInput:T3,pinInput:_3,popover:A3,progress:I3,progressCircle:N3,radioCard:L3,radioGroup:M3,ratingGroup:D3,scrollArea:P3,segmentGroup:U3,select:$f,combobox:p3,slider:$3,splitter:H3,stat:B3,steps:W3,switch:G3,table:q3,tabs:Y3,tag:X3,tagsInput:K3,toast:Q3,tooltip:J3,status:F3,timeline:Z3,colorPicker:g3,qrCode:V3,treeView:e4},n4=wV({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),a4=jn.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),r4=jn.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),i4=jn.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),o4=jn.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),l4=jn.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),s4=jn.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),c4=jn.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),u4=jn.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),d4=jn.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),f4=jn.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),U1='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',h4=jn.fonts({heading:{value:`Inter, ${U1}`},body:{value:`Inter, ${U1}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),g4=CV({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"var(--collapsed-height, 0)"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"var(--collapsed-height, 0)"}},"expand-width":{from:{width:"var(--collapsed-width, 0)"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"var(--collapsed-width, 0)"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),p4=jn.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),m4=jn.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),b4=jn.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),Nk=jn.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),v4=jn.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),x4=jn.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),y4=jn.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),S4=jn.sizes({...v4,...Nk,...y4,...x4}),C4=jn.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),E4={aspectRatios:r4,animations:a4,blurs:i4,borders:o4,colors:l4,durations:c4,easings:u4,fonts:h4,fontSizes:d4,fontWeights:f4,letterSpacings:p4,lineHeights:m4,radii:b4,spacing:Nk,sizes:S4,zIndex:C4,cursor:s4},w4={colors:mM,shadows:vM,radii:bM},k4="chakra",R4=":where(html, .chakra-theme)",O4=tb({preflight:!0,cssVarsPrefix:k4,cssVarsRoot:R4,globalCss:KL,theme:{breakpoints:XL,keyframes:g4,tokens:E4,semanticTokens:w4,recipes:pM,slotRecipes:t4,textStyles:n4,layerStyles:ZL,animationStyles:QL}}),Vk=sk(NV,O4);zk(Vk);function j4(e){const{key:t,recipe:a}=e,i=Pu();return m.useMemo(()=>{const l=a||(t!=null?i.getSlotRecipe(t):{});return i.sva(structuredClone(l))},[t,a,i])}const T4=e=>e.charAt(0).toUpperCase()+e.slice(1),kh=e=>{const{key:t,recipe:a}=e,i=T4(t||a.className||"Component"),[l,c]=Ws({name:`${i}StylesContext`,errorMessage:`use${i}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${i}.Root />" `}),[d,h]=Ws({name:`${i}ClassNameContext`,errorMessage:`use${i}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${i}.Root />" `,strict:!1}),[p,b]=Ws({strict:!1,name:`${i}PropsContext`,providerName:`${i}PropsContext`,defaultValue:{}});function v(O){const{unstyled:w,...T}=O,A=j4({key:t,recipe:T.recipe||a}),[_,I]=m.useMemo(()=>A.splitVariantProps(T),[T,A]);return{styles:m.useMemo(()=>w?AC:A(_),[w,_,A]),classNames:A.classNameMap,props:I}}function x(O,w={}){const{defaultProps:T}=w,A=_=>{const I=b(),M=m.useMemo(()=>Tu(T,I,_),[I,_]),{styles:R,classNames:V,props:P}=v(M);return u.jsx(l,{value:R,children:u.jsx(d,{value:V,children:u.jsx(O,{...P})})})};return A.displayName=O.displayName||O.name,A}return{StylesProvider:l,ClassNamesProvider:d,PropsProvider:p,usePropsContext:b,useRecipeResult:v,withProvider:(O,w,T)=>{const{defaultProps:A,..._}=T??{},I=Kt(O,{},_),M=m.forwardRef((R,V)=>{const P=b(),F=m.useMemo(()=>Tu(A??{},P,R),[P,R]),{styles:B,props:W,classNames:Y}=v(F),U=Y[w],be=u.jsx(l,{value:B,children:u.jsx(d,{value:Y,children:u.jsx(I,{ref:V,...W,css:[B[w],F.css],className:ia(F.className,U)})})});return T?.wrapElement?.(be,F)??be});return M.displayName=O.displayName||O.name,M},withContext:(O,w,T)=>{const A=Kt(O,{},T),_=m.forwardRef((I,M)=>{const{unstyled:R,...V}=I,P=c(),B=h()?.[w];return u.jsx(A,{...V,css:[!R&&w?P[w]:void 0,I.css],ref:M,className:ia(I.className,B)})});return _.displayName=O.displayName||O.name,_},withRootProvider:x,useStyles:c,useClassNames:h}},Lk=Kt("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});Lk.displayName="AbsoluteCenter";const z4=e=>u.jsx(Kt.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:u.jsx("path",{d:"m6 9 6 6 6-6"})}),_4=e=>u.jsx(Kt.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:u.jsx("path",{d:"m9 18 6-6-6-6"})}),A4=e=>u.jsxs(Kt.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[u.jsx("circle",{cx:"12",cy:"12",r:"1"}),u.jsx("circle",{cx:"19",cy:"12",r:"1"}),u.jsx("circle",{cx:"5",cy:"12",r:"1"})]}),I4=rs({"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}),fr=m.forwardRef(function(t,a){const{ratio:i=4/3,children:l,className:c,...d}=t,h=m.Children.only(l);return u.jsx(Kt.div,{ref:a,position:"relative",className:ia("chakra-aspect-ratio",c),_before:{height:0,content:'""',display:"block",paddingBottom:hc(i,p=>`${1/p*100}%`)},...d,css:[I4,t.css],children:h})});fr.displayName="AspectRatio";const cl=e=>e?"":void 0,N4=Kt("div",{base:{display:"inline-flex",gap:"var(--group-gap, 0.5rem)",isolation:"isolate",position:"relative","& [data-group-item]":{_focusVisible:{zIndex:1}}},variants:{orientation:{horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},attached:{true:{gap:"0!"}},grow:{true:{display:"flex","& > *":{flex:1}}},stacking:{"first-on-top":{"& > [data-group-item]":{zIndex:"calc(var(--group-count) - var(--group-index))"}},"last-on-top":{"& > [data-group-item]":{zIndex:"var(--group-index)"}}}},compoundVariants:[{orientation:"horizontal",attached:!0,css:{"& > *[data-first]":{borderEndRadius:"0!",marginEnd:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginEnd:"-1px"},"& > *[data-last]":{borderStartRadius:"0!"}}},{orientation:"vertical",attached:!0,css:{"& > *[data-first]":{borderBottomRadius:"0!",marginBottom:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginBottom:"-1px"},"& > *[data-last]":{borderTopRadius:"0!"}}}],defaultVariants:{orientation:"horizontal"}}),Mk=m.memo(m.forwardRef(function(t,a){const{align:i="center",justify:l="flex-start",children:c,wrap:d,skip:h,...p}=t,b=m.useMemo(()=>{let v=m.Children.toArray(c).filter(m.isValidElement);if(v.length===1)return v;const x=v.filter(C=>!h?.(C)),S=x.length;return x.length===1?v:v.map(C=>{const O=C.props;if(h?.(C))return C;const w=x.indexOf(C);return m.cloneElement(C,{...O,"data-group-item":"","data-first":cl(w===0),"data-last":cl(w===S-1),"data-between":cl(w>0&&wTu(i,t),[i,t]),c=D4(l),{loading:d,loadingText:h,children:p,spinner:b,spinnerPlacement:v,...x}=c.props;return u.jsx(Kt.button,{type:"button",ref:a,...x,"data-loading":cl(d),disabled:d||x.disabled,className:ia(c.className,l.className),css:[c.styles,l.css],children:!l.asChild&&d?u.jsx(Dk,{spinner:b,text:h,spinnerPlacement:v,children:p}):p})});je.displayName="Button";const Rh=m.forwardRef(function(t,a){return u.jsx(je,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:a,...t})});Rh.displayName="IconButton";const Pk=m.forwardRef(function(t,a){const i=S0({key:"checkmark",recipe:t.recipe}),[l,c]=i.splitVariantProps(t),{checked:d,indeterminate:h,disabled:p,unstyled:b,children:v,...x}=c,S=b?_C:i(l);return u.jsx(Kt.svg,{ref:a,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3px",strokeLinecap:"round",strokeLinejoin:"round","data-state":h?"indeterminate":d?"checked":"unchecked","data-disabled":cl(p),css:[S,t.css],...x,children:h?u.jsx("path",{d:"M5 12h14"}):d?u.jsx("polyline",{points:"20 6 9 17 4 12"}):null})});Pk.displayName="Checkmark";const{withProvider:Uk,withContext:$k,useStyles:U4}=kh({key:"checkbox"});Uk(XE,"root",{forwardAsChild:!0});const tc=Uk(YE,"root",{forwardAsChild:!0}),nc=$k(qE,"label",{forwardAsChild:!0}),$4=m.forwardRef(function(t,a){const{checked:i,indeterminate:l,...c}=t,d=xh(),h=U4();return i&&d.checked?u.jsx(Kt.svg,{ref:a,asChild:!0,...c,css:[h.indicator,t.css],children:i}):l&&d.indeterminate?u.jsx(Kt.svg,{ref:a,asChild:!0,...c,css:[h.indicator,t.css],children:l}):u.jsx(Pk,{ref:a,checked:d.checked,indeterminate:d.indeterminate,disabled:d.disabled,unstyled:!0,...c,css:[h.indicator,t.css]})}),ac=$k(DE,"control",{forwardAsChild:!0,defaultProps:{children:u.jsx($4,{})}});Kt(WE,{base:{display:"flex",flexDirection:"column",gap:"1.5"}},{forwardAsChild:!0});const rc=GE;function H4(e){const{gap:t,direction:a}=e,i={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":hc(a,l=>i[l])}}function B4(e){return m.Children.toArray(e).filter(t=>m.isValidElement(t))}const ze=m.forwardRef(function(t,a){const{direction:i="column",align:l,justify:c,gap:d="0.5rem",wrap:h,children:p,separator:b,className:v,...x}=t,S=m.useMemo(()=>H4({gap:d,direction:i}),[d,i]),C=m.useMemo(()=>m.isValidElement(b)?B4(p).map((O,w,T)=>{const A=typeof O.key<"u"?O.key:w,_=b,I=m.cloneElement(_,{css:[S,_.props.css]});return u.jsxs(m.Fragment,{children:[O,w===T.length-1?null:I]},A)}):p,[p,b,S]);return u.jsx(Kt.div,{ref:a,display:"flex",alignItems:l,justifyContent:c,flexDirection:i,flexWrap:h,gap:b?void 0:d,className:ia("chakra-stack",v),...x,children:C})});ze.displayName="Stack";const{withContext:F4}=jo({key:"container"}),Pr=F4("div");Pr.displayName="Container";const{useRecipeResult:W4}=jo({key:"icon"}),Fn=m.forwardRef(function(t,a){const{styles:i,className:l,props:c}=W4({asChild:!t.as,...t});return u.jsx(Kt.svg,{ref:a,focusable:!1,"aria-hidden":"true",...c,css:[i,t.css],className:ia(l,t.className)})});Fn.displayName="Icon";const Hn=m.forwardRef(function(t,a){const{direction:i,align:l,justify:c,wrap:d,basis:h,grow:p,shrink:b,inline:v,...x}=t;return u.jsx(Kt.div,{ref:a,...x,css:{display:v?"inline-flex":"flex",flexDirection:i,alignItems:l,justifyContent:c,flexWrap:d,flexBasis:h,flexGrow:p,flexShrink:b,...t.css}})});Hn.displayName="Flex";function $1(e){return hc(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}const a0=m.forwardRef(function(t,a){const{area:i,colSpan:l,colStart:c,colEnd:d,rowEnd:h,rowSpan:p,rowStart:b,...v}=t,x=m.useMemo(()=>lc({gridArea:i,gridColumn:$1(l),gridRow:$1(p),gridColumnStart:c,gridColumnEnd:d,gridRowStart:b,gridRowEnd:h}),[i,l,c,d,h,p,b]);return u.jsx(Kt.div,{ref:a,css:[x,t.css],...v})});a0.displayName="GridItem";const{withContext:G4}=jo({key:"input"}),ai=G4(sw),H1=m.forwardRef(function({unstyled:t,...a},i){const l=S0({key:"inputAddon",recipe:a.recipe}),[c,d]=l.splitVariantProps(a),h=t?AC:l(c);return u.jsx(Kt.div,{ref:i,...d,css:[h,a.css]})}),pm=Kt("div",{base:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",zIndex:2,color:"fg.muted",height:"full",fontSize:"sm",px:"3"},variants:{placement:{start:{insetInlineStart:"0"},end:{insetInlineEnd:"0"}}}}),rb=m.forwardRef(function(t,a){const{startElement:i,startElementProps:l,endElement:c,endElementProps:d,startAddon:h,startAddonProps:p,endAddon:b,endAddonProps:v,children:x,startOffset:S="0px",endOffset:C="0px",...O}=t,w=m.Children.only(x),T=!!(h||b);return u.jsxs(Mk,{width:"full",ref:a,attached:T,skip:A=>A.type===pm,...O,children:[h&&u.jsx(H1,{...p,children:h}),i&&u.jsx(pm,{pointerEvents:"none",...l,children:i}),m.cloneElement(w,{...i&&{ps:`calc(var(--input-height) - ${S})`},...c&&{pe:`calc(var(--input-height) - ${C})`},...x.props}),c&&u.jsx(pm,{placement:"end",...d,children:c}),b&&u.jsx(H1,{...v,children:b})]})}),[q4,Hk]=Ws({name:"NativeSelectBasePropsContext",hookName:"useNativeSelectBaseProps",providerName:"",strict:!1}),{withProvider:Y4,useClassNames:Bk,useStyles:Fk}=kh({key:"nativeSelect"}),it=Y4("div","root",{wrapElement(e,t){const a=Bu(),i=!!(a?.disabled??t.disabled),l=!!(a?.invalid??t.invalid);return u.jsx(q4,{value:{disabled:i,invalid:l},children:e})}}),X4=Kt(uw,{},{forwardAsChild:!0}),ot=m.forwardRef(function(t,a){const{children:i,placeholder:l,unstyled:c,...d}=t,{disabled:h,invalid:p}=Hk(),b=Fk(),v=Bk();return u.jsxs(X4,{disabled:h,"data-invalid":cl(p),...d,ref:a,className:ia(v.field,t.className),css:[c?void 0:b.field,t.css],children:[l&&u.jsx("option",{value:"",children:l}),i]})});function lt(e){const{unstyled:t,...a}=e,i=Fk(),{disabled:l,invalid:c}=Hk(),d=Bk();return u.jsx(Kt.div,{...a,"data-disabled":cl(l),"data-invalid":cl(c),className:ia(d.indicator,e.className),css:[t?void 0:i.indicator,e.css],children:e.children??u.jsx(z4,{})})}const{useRecipeResult:K4}=jo({key:"separator"}),ib=m.forwardRef(function(t,a){const{styles:i,className:l,props:c}=K4(t),d=t.orientation||"horizontal";return u.jsx(Kt.span,{ref:a,role:pr(d)?"separator":"presentation","aria-orientation":pr(d)?d:void 0,...eb(c,["orientation"]),className:ia(l,t.className),css:[i,t.css]})});ib.displayName="Separator";const ob=m.forwardRef(function(t,a){const{columns:i,minChildWidth:l,...c}=t,d=Pu(),h=l?Q4(l,d):J4(i);return u.jsx(vn,{ref:a,templateColumns:h,...c})});ob.displayName="SimpleGrid";function Z4(e){return typeof e=="number"?`${e}px`:e}function Q4(e,t){return hc(e,a=>{const i=t.tokens.getVar(`sizes.${a}`,Z4(a));return a===null?null:`repeat(auto-fit, minmax(${i}, 1fr))`})}function J4(e){return hc(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}const{withProvider:Wk,withContext:Bi}=kh({key:"slider"});Wk(Jw,"root",{forwardAsChild:!0});const lb=Wk(Qw,"root",{forwardAsChild:!0}),sb=Bi(tk,"track",{forwardAsChild:!0}),cb=Bi($w,"range",{forwardAsChild:!0}),ub=Bi(ek,"thumb",{forwardAsChild:!0});Bi(nk,"valueText",{forwardAsChild:!0});Bi(Dw,"label",{forwardAsChild:!0});const eD=Bi(Uw,"markerGroup",{forwardAsChild:!0}),tD=Bi(Pw,"marker",{forwardAsChild:!0}),nD=Bi("div","markerIndicator");Bi(Mw,"draggingIndicator",{forwardAsChild:!0});m.forwardRef(function(t,a){const{marks:i,...l}=t;return i?.length?u.jsx(eD,{ref:a,...l,children:i.map((c,d)=>{const h=typeof c=="number"?c:c.value,p=typeof c=="number"?void 0:c.label;return u.jsxs(tD,{value:h,children:[u.jsx(nD,{}),p!=null&&u.jsx("span",{className:"chakra-slider__marker-label",children:p})]},d)})}):null});const db=Bi(Lw,"control",{forwardAsChild:!0}),Oe=m.forwardRef(function(t,a){return u.jsx(ze,{align:"center",...t,direction:"row",ref:a})});Oe.displayName="HStack";const Gk=m.forwardRef(function(t,a){return u.jsx(ze,{align:"center",...t,direction:"column",ref:a})});Gk.displayName="VStack";var B1="popstate";function aD(e={}){function t(i,l){let{pathname:c,search:d,hash:h}=i.location;return r0("",{pathname:c,search:d,hash:h},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function a(i,l){return typeof l=="string"?l:Lu(l)}return iD(t,a,null,e)}function sn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Dr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function rD(){return Math.random().toString(36).substring(2,10)}function F1(e,t){return{usr:e.state,key:e.key,idx:t}}function r0(e,t,a=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?pc(t):t,state:a,key:t&&t.key||i||rD()}}function Lu({pathname:e="/",search:t="",hash:a=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function pc(e){let t={};if(e){let a=e.indexOf("#");a>=0&&(t.hash=e.substring(a),e=e.substring(0,a));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function iD(e,t,a,i={}){let{window:l=document.defaultView,v5Compat:c=!1}=i,d=l.history,h="POP",p=null,b=v();b==null&&(b=0,d.replaceState({...d.state,idx:b},""));function v(){return(d.state||{idx:null}).idx}function x(){h="POP";let T=v(),A=T==null?null:T-b;b=T,p&&p({action:h,location:w.location,delta:A})}function S(T,A){h="PUSH";let _=r0(w.location,T,A);b=v()+1;let I=F1(_,b),M=w.createHref(_);try{d.pushState(I,"",M)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;l.location.assign(M)}c&&p&&p({action:h,location:w.location,delta:1})}function C(T,A){h="REPLACE";let _=r0(w.location,T,A);b=v();let I=F1(_,b),M=w.createHref(_);d.replaceState(I,"",M),c&&p&&p({action:h,location:w.location,delta:0})}function O(T){return oD(T)}let w={get action(){return h},get location(){return e(l,d)},listen(T){if(p)throw new Error("A history only accepts one active listener");return l.addEventListener(B1,x),p=T,()=>{l.removeEventListener(B1,x),p=null}},createHref(T){return t(l,T)},createURL:O,encodeLocation(T){let A=O(T);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:S,replace:C,go(T){return d.go(T)}};return w}function oD(e,t=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),sn(a,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Lu(e);return i=i.replace(/ $/,"%20"),!t&&i.startsWith("//")&&(i=a+i),new URL(i,a)}function qk(e,t,a="/"){return lD(e,t,a,!1)}function lD(e,t,a,i){let l=typeof t=="string"?pc(t):t,c=Oo(l.pathname||"/",a);if(c==null)return null;let d=Yk(e);sD(d);let h=null;for(let p=0;h==null&&p{let v={relativePath:b===void 0?d.path||"":b,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(i)&&p)return;sn(v.relativePath.startsWith(i),`Absolute route path "${v.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(i.length)}let x=wo([i,v.relativePath]),S=a.concat(v);d.children&&d.children.length>0&&(sn(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),Yk(d.children,t,S,x,p)),!(d.path==null&&!d.index)&&t.push({path:x,score:pD(x,d.index),routesMeta:S})};return e.forEach((d,h)=>{if(d.path===""||!d.path?.includes("?"))c(d,h);else for(let p of Xk(d.path))c(d,h,!0,p)}),t}function Xk(e){let t=e.split("/");if(t.length===0)return[];let[a,...i]=t,l=a.endsWith("?"),c=a.replace(/\?$/,"");if(i.length===0)return l?[c,""]:[c];let d=Xk(i.join("/")),h=[];return h.push(...d.map(p=>p===""?c:[c,p].join("/"))),l&&h.push(...d),h.map(p=>e.startsWith("/")&&p===""?"/":p)}function sD(e){e.sort((t,a)=>t.score!==a.score?a.score-t.score:mD(t.routesMeta.map(i=>i.childrenIndex),a.routesMeta.map(i=>i.childrenIndex)))}var cD=/^:[\w-]+$/,uD=3,dD=2,fD=1,hD=10,gD=-2,W1=e=>e==="*";function pD(e,t){let a=e.split("/"),i=a.length;return a.some(W1)&&(i+=gD),t&&(i+=dD),a.filter(l=>!W1(l)).reduce((l,c)=>l+(cD.test(c)?uD:c===""?fD:hD),i)}function mD(e,t){return e.length===t.length&&e.slice(0,-1).every((i,l)=>i===t[l])?e[e.length-1]-t[t.length-1]:0}function bD(e,t,a=!1){let{routesMeta:i}=e,l={},c="/",d=[];for(let h=0;h{if(v==="*"){let O=h[S]||"";d=c.slice(0,c.length-O.length).replace(/(.)\/+$/,"$1")}const C=h[S];return x&&!C?b[v]=void 0:b[v]=(C||"").replace(/%2F/g,"/"),b},{}),pathname:c,pathnameBase:d,pattern:e}}function vD(e,t=!1,a=!0){Dr(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 i=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,p)=>(i.push({paramName:h,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),i]}function xD(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Dr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Oo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,i=e.charAt(a);return i&&i!=="/"?null:e.slice(a)||"/"}var Kk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yD=e=>Kk.test(e);function SD(e,t="/"){let{pathname:a,search:i="",hash:l=""}=typeof e=="string"?pc(e):e,c;if(a)if(yD(a))c=a;else{if(a.includes("//")){let d=a;a=a.replace(/\/\/+/g,"/"),Dr(!1,`Pathnames cannot have embedded double slashes - normalizing ${d} -> ${a}`)}a.startsWith("/")?c=G1(a.substring(1),"/"):c=G1(a,t)}else c=t;return{pathname:c,search:wD(i),hash:kD(l)}}function G1(e,t){let a=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?a.length>1&&a.pop():l!=="."&&a.push(l)}),a.length>1?a.join("/"):"/"}function mm(e,t,a,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function CD(e){return e.filter((t,a)=>a===0||t.route.path&&t.route.path.length>0)}function Zk(e){let t=CD(e);return t.map((a,i)=>i===t.length-1?a.pathname:a.pathnameBase)}function Qk(e,t,a,i=!1){let l;typeof e=="string"?l=pc(e):(l={...e},sn(!l.pathname||!l.pathname.includes("?"),mm("?","pathname","search",l)),sn(!l.pathname||!l.pathname.includes("#"),mm("#","pathname","hash",l)),sn(!l.search||!l.search.includes("#"),mm("#","search","hash",l)));let c=e===""||l.pathname==="",d=c?"/":l.pathname,h;if(d==null)h=a;else{let x=t.length-1;if(!i&&d.startsWith("..")){let S=d.split("/");for(;S[0]==="..";)S.shift(),x-=1;l.pathname=S.join("/")}h=x>=0?t[x]:"/"}let p=SD(l,h),b=d&&d!=="/"&&d.endsWith("/"),v=(c||d===".")&&a.endsWith("/");return!p.pathname.endsWith("/")&&(b||v)&&(p.pathname+="/"),p}var wo=e=>e.join("/").replace(/\/\/+/g,"/"),ED=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),wD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,kD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,RD=class{constructor(e,t,a,i=!1){this.status=e,this.statusText=t||"",this.internal=i,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function OD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function jD(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Jk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function e2(e,t){let a=e;if(typeof a!="string"||!Kk.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let i=a,l=!1;if(Jk)try{let c=new URL(window.location.href),d=a.startsWith("//")?new URL(c.protocol+a):new URL(a),h=Oo(d.pathname,t);d.origin===c.origin&&h!=null?a=h+d.search+d.hash:l=!0}catch{Dr(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:l,to:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var t2=["POST","PUT","PATCH","DELETE"];new Set(t2);var TD=["GET",...t2];new Set(TD);var mc=m.createContext(null);mc.displayName="DataRouter";var Oh=m.createContext(null);Oh.displayName="DataRouterState";var zD=m.createContext(!1),n2=m.createContext({isTransitioning:!1});n2.displayName="ViewTransition";var _D=m.createContext(new Map);_D.displayName="Fetchers";var AD=m.createContext(null);AD.displayName="Await";var Ur=m.createContext(null);Ur.displayName="Navigation";var Wu=m.createContext(null);Wu.displayName="Location";var zo=m.createContext({outlet:null,matches:[],isDataRoute:!1});zo.displayName="Route";var fb=m.createContext(null);fb.displayName="RouteError";var a2="REACT_ROUTER_ERROR",ID="REDIRECT",ND="ROUTE_ERROR_RESPONSE";function VD(e){if(e.startsWith(`${a2}:${ID}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function LD(e){if(e.startsWith(`${a2}:${ND}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new RD(t.status,t.statusText,t.data)}catch{}}function MD(e,{relative:t}={}){sn(Gu(),"useHref() may be used only in the context of a component.");let{basename:a,navigator:i}=m.useContext(Ur),{hash:l,pathname:c,search:d}=Yu(e,{relative:t}),h=c;return a!=="/"&&(h=c==="/"?a:wo([a,c])),i.createHref({pathname:h,search:d,hash:l})}function Gu(){return m.useContext(Wu)!=null}function ml(){return sn(Gu(),"useLocation() may be used only in the context of a component."),m.useContext(Wu).location}var r2="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function i2(e){m.useContext(Ur).static||m.useLayoutEffect(e)}function qu(){let{isDataRoute:e}=m.useContext(zo);return e?KD():DD()}function DD(){sn(Gu(),"useNavigate() may be used only in the context of a component.");let e=m.useContext(mc),{basename:t,navigator:a}=m.useContext(Ur),{matches:i}=m.useContext(zo),{pathname:l}=ml(),c=JSON.stringify(Zk(i)),d=m.useRef(!1);return i2(()=>{d.current=!0}),m.useCallback((p,b={})=>{if(Dr(d.current,r2),!d.current)return;if(typeof p=="number"){a.go(p);return}let v=Qk(p,JSON.parse(c),l,b.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:wo([t,v.pathname])),(b.replace?a.replace:a.push)(v,b.state,b)},[t,a,c,l,e])}m.createContext(null);function Yu(e,{relative:t}={}){let{matches:a}=m.useContext(zo),{pathname:i}=ml(),l=JSON.stringify(Zk(a));return m.useMemo(()=>Qk(e,JSON.parse(l),i,t==="path"),[e,l,i,t])}function PD(e,t){return o2(e,t)}function o2(e,t,a,i,l){sn(Gu(),"useRoutes() may be used only in the context of a component.");let{navigator:c}=m.useContext(Ur),{matches:d}=m.useContext(zo),h=d[d.length-1],p=h?h.params:{},b=h?h.pathname:"/",v=h?h.pathnameBase:"/",x=h&&h.route;{let _=x&&x.path||"";s2(b,!x||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${b}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. + +Please change the parent to .`)}let S=ml(),C;if(t){let _=typeof t=="string"?pc(t):t;sn(v==="/"||_.pathname?.startsWith(v),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${_.pathname}" was given in the \`location\` prop.`),C=_}else C=S;let O=C.pathname||"/",w=O;if(v!=="/"){let _=v.replace(/^\//,"").split("/");w="/"+O.replace(/^\//,"").split("/").slice(_.length).join("/")}let T=qk(e,{pathname:w});Dr(x||T!=null,`No routes matched location "${C.pathname}${C.search}${C.hash}" `),Dr(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${C.pathname}${C.search}${C.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let A=FD(T&&T.map(_=>Object.assign({},_,{params:Object.assign({},p,_.params),pathname:wo([v,c.encodeLocation?c.encodeLocation(_.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?v:wo([v,c.encodeLocation?c.encodeLocation(_.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathnameBase])})),d,a,i,l);return t&&A?m.createElement(Wu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...C},navigationType:"POP"}},A):A}function UD(){let e=XD(),t=OD(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:i},c={padding:"2px 4px",backgroundColor:i},d=null;return console.error("Error handled by React Router default ErrorBoundary:",e),d=m.createElement(m.Fragment,null,m.createElement("p",null,"💿 Hey developer 👋"),m.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",m.createElement("code",{style:c},"ErrorBoundary")," or"," ",m.createElement("code",{style:c},"errorElement")," prop on your route.")),m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),a?m.createElement("pre",{style:l},a):null,d)}var $D=m.createElement(UD,null),l2=class extends m.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const a=LD(e.digest);a&&(e=a)}let t=e!==void 0?m.createElement(zo.Provider,{value:this.props.routeContext},m.createElement(fb.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?m.createElement(HD,{error:e},t):t}};l2.contextType=zD;var bm=new WeakMap;function HD({children:e,error:t}){let{basename:a}=m.useContext(Ur);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let i=VD(t.digest);if(i){let l=bm.get(t);if(l)throw l;let c=e2(i.location,a);if(Jk&&!bm.get(t))if(c.isExternal||i.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:i.replace}));throw bm.set(t,d),d}return m.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return e}function BD({routeContext:e,match:t,children:a}){let i=m.useContext(mc);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),m.createElement(zo.Provider,{value:e},a)}function FD(e,t=[],a=null,i=null,l=null){if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let c=e,d=a?.errors;if(d!=null){let v=c.findIndex(x=>x.route.id&&d?.[x.route.id]!==void 0);sn(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),c=c.slice(0,Math.min(c.length,v+1))}let h=!1,p=-1;if(a)for(let v=0;v=0?c=c.slice(0,p+1):c=[c[0]];break}}}let b=a&&i?(v,x)=>{i(v,{location:a.location,params:a.matches?.[0]?.params??{},unstable_pattern:jD(a.matches),errorInfo:x})}:void 0;return c.reduceRight((v,x,S)=>{let C,O=!1,w=null,T=null;a&&(C=d&&x.route.id?d[x.route.id]:void 0,w=x.route.errorElement||$D,h&&(p<0&&S===0?(s2("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),O=!0,T=null):p===S&&(O=!0,T=x.route.hydrateFallbackElement||null)));let A=t.concat(c.slice(0,S+1)),_=()=>{let I;return C?I=w:O?I=T:x.route.Component?I=m.createElement(x.route.Component,null):x.route.element?I=x.route.element:I=v,m.createElement(BD,{match:x,routeContext:{outlet:v,matches:A,isDataRoute:a!=null},children:I})};return a&&(x.route.ErrorBoundary||x.route.errorElement||S===0)?m.createElement(l2,{location:a.location,revalidation:a.revalidation,component:w,error:C,children:_(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:b}):_()},null)}function hb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function WD(e){let t=m.useContext(mc);return sn(t,hb(e)),t}function GD(e){let t=m.useContext(Oh);return sn(t,hb(e)),t}function qD(e){let t=m.useContext(zo);return sn(t,hb(e)),t}function gb(e){let t=qD(e),a=t.matches[t.matches.length-1];return sn(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function YD(){return gb("useRouteId")}function XD(){let e=m.useContext(fb),t=GD("useRouteError"),a=gb("useRouteError");return e!==void 0?e:t.errors?.[a]}function KD(){let{router:e}=WD("useNavigate"),t=gb("useNavigate"),a=m.useRef(!1);return i2(()=>{a.current=!0}),m.useCallback(async(l,c={})=>{Dr(a.current,r2),a.current&&(typeof l=="number"?await e.navigate(l):await e.navigate(l,{fromRouteId:t,...c}))},[e,t])}var q1={};function s2(e,t,a){!t&&!q1[e]&&(q1[e]=!0,Dr(!1,a))}m.memo(ZD);function ZD({routes:e,future:t,state:a,onError:i}){return o2(e,void 0,a,i,t)}function Nr(e){sn(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function QD({basename:e="/",children:t=null,location:a,navigationType:i="POP",navigator:l,static:c=!1,unstable_useTransitions:d}){sn(!Gu(),"You cannot render a inside another . You should never have more than one in your app.");let h=e.replace(/^\/*/,"/"),p=m.useMemo(()=>({basename:h,navigator:l,static:c,unstable_useTransitions:d,future:{}}),[h,l,c,d]);typeof a=="string"&&(a=pc(a));let{pathname:b="/",search:v="",hash:x="",state:S=null,key:C="default"}=a,O=m.useMemo(()=>{let w=Oo(b,h);return w==null?null:{location:{pathname:w,search:v,hash:x,state:S,key:C},navigationType:i}},[h,b,v,x,S,C,i]);return Dr(O!=null,` is not able to match the URL "${b}${v}${x}" because it does not start with the basename, so the won't render anything.`),O==null?null:m.createElement(Ur.Provider,{value:p},m.createElement(Wu.Provider,{children:t,value:O}))}function JD({children:e,location:t}){return PD(i0(e),t)}function i0(e,t=[]){let a=[];return m.Children.forEach(e,(i,l)=>{if(!m.isValidElement(i))return;let c=[...t,l];if(i.type===m.Fragment){a.push.apply(a,i0(i.props.children,c));return}sn(i.type===Nr,`[${typeof i.type=="string"?i.type:i.type.name}] is not a component. All component children of must be a or `),sn(!i.props.index||!i.props.children,"An index route cannot have child routes.");let d={id:i.props.id||c.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(d.children=i0(i.props.children,c)),a.push(d)}),a}var Hf="get",Bf="application/x-www-form-urlencoded";function jh(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function eP(e){return jh(e)&&e.tagName.toLowerCase()==="button"}function tP(e){return jh(e)&&e.tagName.toLowerCase()==="form"}function nP(e){return jh(e)&&e.tagName.toLowerCase()==="input"}function aP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function rP(e,t){return e.button===0&&(!t||t==="_self")&&!aP(e)}function o0(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,a)=>{let i=e[a];return t.concat(Array.isArray(i)?i.map(l=>[a,l]):[[a,i]])},[]))}function iP(e,t){let a=o0(e);return t&&t.forEach((i,l)=>{a.has(l)||t.getAll(l).forEach(c=>{a.append(l,c)})}),a}var Sf=null;function oP(){if(Sf===null)try{new FormData(document.createElement("form"),0),Sf=!1}catch{Sf=!0}return Sf}var lP=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function vm(e){return e!=null&&!lP.has(e)?(Dr(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Bf}"`),null):e}function sP(e,t){let a,i,l,c,d;if(tP(e)){let h=e.getAttribute("action");i=h?Oo(h,t):null,a=e.getAttribute("method")||Hf,l=vm(e.getAttribute("enctype"))||Bf,c=new FormData(e)}else if(eP(e)||nP(e)&&(e.type==="submit"||e.type==="image")){let h=e.form;if(h==null)throw new Error('Cannot submit a + + + setSelectedFrame(Number(event.target.value))} + bg="sand.50" + border="1px solid" + borderColor="sand.200" + color="ink.900" + _focusVisible={{ + borderColor: 'tide.400', + boxShadow: '0 0 0 1px var(--app-accent-ring)', + }} + > + {frames.map((frame) => ( + + ))} + + + + + + + + + + + View mode + + + + setViewMode(event.target.value as RawPositionViewMode) + } + bg="sand.50" + border="1px solid" + borderColor="sand.200" + color="ink.900" + _focusVisible={{ + borderColor: 'tide.400', + boxShadow: '0 0 0 1px var(--app-accent-ring)', + }} + > + + + + + + + + + + Channel + + + + setFluorescenceChannel(event.target.value as FluorescenceChannel) + } + bg="sand.50" + border="1px solid" + borderColor="sand.200" + color="ink.900" + _focusVisible={{ + borderColor: 'tide.400', + boxShadow: '0 0 0 1px var(--app-accent-ring)', + }} + > + + + + + + + + + + + + + X range + + + {formatRange(concreteBounds, 'x')} + + + + + Y range + + + {formatRange(concreteBounds, 'y')} + + + + + + + + + + + + + + + Cell Position Preview + + + + {isLoadingFrames || isLoadingFrame ? ( + + Loading... + + ) : error ? ( + + {error} + + ) : !frameData || frameData.positioned_count === 0 ? ( + + + No raw positions in this frame. + + + {selectedMissingCount > 0 + ? `${formatCount(selectedMissingCount)} cells are missing position_x / position_y.` + : 'No cells available.'} + + + ) : ( + + + + {isJetMode && + frameData.cells.map((cell) => { + if ( + !cell.jet_image || + typeof cell.image_x !== 'number' || + typeof cell.image_y !== 'number' || + typeof cell.image_width !== 'number' || + typeof cell.image_height !== 'number' + ) { + return null + } + return ( + + ) + })} + {frameData.cells.map((cell) => ( + + ))} + + + )} + + + {frames.length > 1 && ( + + + + Frame {selectedFrame ?? '-'} + + + / {lastFrameNumber} + + + { + const nextIndex = details.value[0] + if (typeof nextIndex !== 'number') return + const nextFrame = frames[nextIndex] + if (nextFrame) { + setSelectedFrame(nextFrame.frame) + } + }} + > + + + + + + + + + )} + + + + + {error && ( + + + {error} + + + )} + + + + ) +} From 2849c8d3c53b9ff8452b8a15a915a097e6e2f152 Mon Sep 17 00:00:00 2001 From: ikeda042 Date: Wed, 3 Jun 2026 11:16:36 +0900 Subject: [PATCH 4/4] refactor: update RawPositionPage layout and styles for improved responsiveness - Adjusted height and padding properties for better layout consistency. - Replaced PageBreadcrumb component with a Box for improved flexibility. - Updated button sizes and styles for better alignment and responsiveness. - Enhanced grid layout for better adaptability across different screen sizes. - Minor adjustments to spacing and display properties for improved visual hierarchy. --- frontend/dist/assets/index-0y_qMD_V.js | 28 ++++++++++++ frontend/dist/index.html | 2 +- frontend/src/pages/RawPositionPage.tsx | 59 +++++++++++++++++--------- 3 files changed, 67 insertions(+), 22 deletions(-) create mode 100644 frontend/dist/assets/index-0y_qMD_V.js diff --git a/frontend/dist/assets/index-0y_qMD_V.js b/frontend/dist/assets/index-0y_qMD_V.js new file mode 100644 index 0000000..98a95a3 --- /dev/null +++ b/frontend/dist/assets/index-0y_qMD_V.js @@ -0,0 +1,28 @@ +function YR(e,t){for(var a=0;ai[l]})}}}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 l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function a(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(l){if(l.ep)return;l.ep=!0;const c=a(l);fetch(l.href,c)}})();function XR(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mp={exports:{}},Jc={};var zy;function KR(){if(zy)return Jc;zy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(i,l,c){var d=null;if(c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),"key"in l){c={};for(var h in l)h!=="key"&&(c[h]=l[h])}else c=l;return l=c.ref,{$$typeof:e,type:i,key:d,ref:l!==void 0?l:null,props:c}}return Jc.Fragment=t,Jc.jsx=a,Jc.jsxs=a,Jc}var _y;function ZR(){return _y||(_y=1,Mp.exports=KR()),Mp.exports}var u=ZR(),Dp={exports:{}},Ze={};var Ay;function QR(){if(Ay)return Ze;Ay=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),S=Symbol.iterator;function C(k){return k===null||typeof k!="object"?null:(k=S&&k[S]||k["@@iterator"],typeof k=="function"?k:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,T={};function A(k,L,G){this.props=k,this.context=L,this.refs=T,this.updater=G||O}A.prototype.isReactComponent={},A.prototype.setState=function(k,L){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,L,"setState")},A.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function _(){}_.prototype=A.prototype;function I(k,L,G){this.props=k,this.context=L,this.refs=T,this.updater=G||O}var M=I.prototype=new _;M.constructor=I,w(M,A.prototype),M.isPureReactComponent=!0;var R=Array.isArray;function V(){}var P={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function B(k,L,G){var X=G.ref;return{$$typeof:e,type:k,key:L,ref:X!==void 0?X:null,props:G}}function W(k,L){return B(k.type,L,k.props)}function Y(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function U(k){var L={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(G){return L[G]})}var be=/\/+/g;function de(k,L){return typeof k=="object"&&k!==null&&k.key!=null?U(""+k.key):L.toString(36)}function ve(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(V,V):(k.status="pending",k.then(function(L){k.status==="pending"&&(k.status="fulfilled",k.value=L)},function(L){k.status==="pending"&&(k.status="rejected",k.reason=L)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function N(k,L,G,X,xe){var ae=typeof k;(ae==="undefined"||ae==="boolean")&&(k=null);var ge=!1;if(k===null)ge=!0;else switch(ae){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(k.$$typeof){case e:case t:ge=!0;break;case v:return ge=k._init,N(ge(k._payload),L,G,X,xe)}}if(ge)return xe=xe(k),ge=X===""?"."+de(k,0):X,R(xe)?(G="",ge!=null&&(G=ge.replace(be,"$&/")+"/"),N(xe,L,G,"",function(Te){return Te})):xe!=null&&(Y(xe)&&(xe=W(xe,G+(xe.key==null||k&&k.key===xe.key?"":(""+xe.key).replace(be,"$&/")+"/")+ge)),L.push(xe)),1;ge=0;var ee=X===""?".":X+":";if(R(k))for(var ne=0;ne>>1,Ee=N[le];if(0>>1;lel(G,oe))Xl(xe,G)?(N[le]=xe,N[X]=oe,le=X):(N[le]=G,N[L]=oe,le=L);else if(Xl(xe,oe))N[le]=xe,N[X]=oe,le=X;else break e}}return te}function l(N,te){var oe=N.sortIndex-te.sortIndex;return oe!==0?oe:N.id-te.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();e.unstable_now=function(){return d.now()-h}}var p=[],b=[],v=1,x=null,S=3,C=!1,O=!1,w=!1,T=!1,A=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;function M(N){for(var te=a(b);te!==null;){if(te.callback===null)i(b);else if(te.startTime<=N)i(b),te.sortIndex=te.expirationTime,t(p,te);else break;te=a(b)}}function R(N){if(w=!1,M(N),!O)if(a(p)!==null)O=!0,V||(V=!0,U());else{var te=a(b);te!==null&&ve(R,te.startTime-N)}}var V=!1,P=-1,F=5,B=-1;function W(){return T?!0:!(e.unstable_now()-BN&&W());){var le=x.callback;if(typeof le=="function"){x.callback=null,S=x.priorityLevel;var Ee=le(x.expirationTime<=N);if(N=e.unstable_now(),typeof Ee=="function"){x.callback=Ee,M(N),te=!0;break t}x===a(p)&&i(p),M(N)}else i(p);x=a(p)}if(x!==null)te=!0;else{var k=a(b);k!==null&&ve(R,k.startTime-N),te=!1}}break e}finally{x=null,S=oe,C=!1}te=void 0}}finally{te?U():V=!1}}}var U;if(typeof I=="function")U=function(){I(Y)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,de=be.port2;be.port1.onmessage=Y,U=function(){de.postMessage(null)}}else U=function(){A(Y,0)};function ve(N,te){P=A(function(){N(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_forceFrameRate=function(N){0>N||125le?(N.sortIndex=oe,t(b,N),a(p)===null&&N===a(b)&&(w?(_(P),P=-1):w=!0,ve(R,oe-le))):(N.sortIndex=Ee,t(p,N),O||C||(O=!0,V||(V=!0,U()))),N},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(N){var te=S;return function(){var oe=S;S=te;try{return N.apply(this,arguments)}finally{S=oe}}}})($p)),$p}var Ly;function tO(){return Ly||(Ly=1,Up.exports=eO()),Up.exports}var Hp={exports:{}},ha={};var My;function nO(){if(My)return ha;My=1;var e=c0();function t(p){var b="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Hp.exports=nO(),Hp.exports}var Py;function aO(){if(Py)return eu;Py=1;var e=tO(),t=c0(),a=bC();function i(n){var r="https://react.dev/errors/"+n;if(1Ee||(n.current=le[Ee],le[Ee]=null,Ee--)}function G(n,r){Ee++,le[Ee]=n.current,n.current=r}var X=k(null),xe=k(null),ae=k(null),ge=k(null);function ee(n,r){switch(G(ae,r),G(xe,n),G(X,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?Jx(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=Jx(r),n=ey(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}L(X),G(X,n)}function ne(){L(X),L(xe),L(ae)}function Te(n){n.memoizedState!==null&&G(ge,n);var r=X.current,o=ey(r,n.type);r!==o&&(G(xe,n),G(X,o))}function se(n){xe.current===n&&(L(X),L(xe)),ge.current===n&&(L(ge),Xc._currentValue=oe)}var ye,ke;function Xe(n){if(ye===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);ye=r&&r[1]||"",ke=-1)":-1f||D[s]!==Q[f]){var ce=` +`+D[s].replace(" at new "," at ");return n.displayName&&ce.includes("")&&(ce=ce.replace("",n.displayName)),ce}while(1<=s&&0<=f);break}}}finally{pe=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?Xe(o):""}function qe(n,r){switch(n.tag){case 26:case 27:case 5:return Xe(n.type);case 16:return Xe("Lazy");case 13:return n.child!==r&&r!==null?Xe("Suspense Fallback"):Xe("Suspense");case 19:return Xe("SuspenseList");case 0:case 15:return _e(n.type,!1);case 11:return _e(n.type.render,!1);case 1:return _e(n.type,!0);case 31:return Xe("Activity");default:return""}}function Ke(n){try{var r="",o=null;do r+=qe(n,o),o=n,n=n.return;while(n);return r}catch(s){return` +Error generating stack: `+s.message+` +`+s.stack}}var jt=Object.prototype.hasOwnProperty,ft=e.unstable_scheduleCallback,tt=e.unstable_cancelCallback,on=e.unstable_shouldYield,ma=e.unstable_requestPaint,$t=e.unstable_now,fn=e.unstable_getCurrentPriorityLevel,Hr=e.unstable_ImmediatePriority,di=e.unstable_UserBlockingPriority,Wn=e.unstable_NormalPriority,Ga=e.unstable_LowPriority,qa=e.unstable_IdlePriority,Ya=e.log,ja=e.unstable_setDisableYieldValue,Ie=null,We=null;function nt(n){if(typeof Ya=="function"&&ja(n),We&&typeof We.setStrictMode=="function")try{We.setStrictMode(Ie,n)}catch{}}var rt=Math.clz32?Math.clz32:mr,pt=Math.log,oa=Math.LN2;function mr(n){return n>>>=0,n===0?32:31-(pt(n)/oa|0)|0}var ba=256,br=262144,yn=4194304;function hn(n){var r=n&42;if(r!==0)return r;switch(n&-n){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function bt(n,r,o){var s=n.pendingLanes;if(s===0)return 0;var f=0,g=n.suspendedLanes,y=n.pingedLanes;n=n.warmLanes;var E=s&134217727;return E!==0?(s=E&~g,s!==0?f=hn(s):(y&=E,y!==0?f=hn(y):o||(o=E&~n,o!==0&&(f=hn(o))))):(E=s&~g,E!==0?f=hn(E):y!==0?f=hn(y):o||(o=s&~n,o!==0&&(f=hn(o)))),f===0?0:r!==0&&r!==f&&(r&g)===0&&(g=f&-f,o=r&-r,g>=o||g===32&&(o&4194048)!==0)?r:f}function va(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function vr(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32: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 r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Br(){var n=yn;return yn<<=1,(yn&62914560)===0&&(yn=4194304),n}function xr(n){for(var r=[],o=0;31>o;o++)r.push(n);return r}function Ta(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function fi(n,r,o,s,f,g){var y=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var E=n.entanglements,D=n.expirationTimes,Q=n.hiddenUpdates;for(o=y&~o;0"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Cr=/[\n"\\]/g;function zn(n){return n.replace(Cr,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function vl(n,r,o,s,f,g,y,E){n.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?n.type=y:n.removeAttribute("type"),r!=null?y==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+Gn(r)):n.value!==""+Gn(r)&&(n.value=""+Gn(r)):y!=="submit"&&y!=="reset"||n.removeAttribute("value"),r!=null?Ao(n,y,Gn(r)):o!=null?Ao(n,y,Gn(o)):s!=null&&n.removeAttribute("value"),f==null&&g!=null&&(n.defaultChecked=!!g),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?n.name=""+Gn(E):n.removeAttribute("name")}function xl(n,r,o,s,f,g,y,E){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.type=g),r!=null||o!=null){if(!(g!=="submit"&&g!=="reset"||r!=null)){Sr(n);return}o=o!=null?""+Gn(o):"",r=r!=null?""+Gn(r):o,E||r===n.value||(n.value=r),n.defaultValue=r}s=s??f,s=typeof s!="function"&&typeof s!="symbol"&&!!s,n.checked=E?n.checked:!!s,n.defaultChecked=!!s,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(n.name=y),Sr(n)}function Ao(n,r,o){r==="number"&&mi(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function Yr(n,r,o,s){if(n=n.options,r){r={};for(var f=0;f"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ln=!1;if(vt)try{var la={};Object.defineProperty(la,"passive",{get:function(){ln=!0}}),window.addEventListener("test",la,la),window.removeEventListener("test",la,la)}catch{ln=!1}var tn=null,sa=null,zt=null;function Va(){if(zt)return zt;var n,r=sa,o=r.length,s,f="value"in tn?tn.value:tn.textContent,g=f.length;for(n=0;n=wl),nd=" ",ad=!1;function j(n,r){switch(n){case"keyup":return ed.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ie(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Ce=!1;function Re(n,r){switch(n){case"compositionend":return ie(r);case"keypress":return r.which!==32?null:(ad=!0,nd);case"textInput":return n=r.data,n===nd&&ad?null:n;default:return null}}function De(n,r){if(Ce)return n==="compositionend"||!xc&&j(n,r)?(n=Va(),zt=sa=tn=null,Ce=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:o,offset:r-n};n=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=eo(o)}}function os(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?os(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function rd(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=mi(n.document);r instanceof n.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)n=r.contentWindow;else break;r=mi(n.document)}return r}function yc(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var Yh=vt&&"documentMode"in document&&11>=document.documentMode,nn=null,Ea=null,Kn=null,ls=!1;function id(n,r,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;ls||nn==null||nn!==mi(s)||(s=nn,"selectionStart"in s&&yc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Kn&&Ca(Kn,s)||(Kn=s,s=qd(Ea,"onSelect"),0>=y,f-=y,Ei=1<<32-rt(r)+f|o<et?(dt=Le,Le=null):dt=Le.sibling;var Et=J(q,Le,Z[et],ue);if(Et===null){Le===null&&(Le=dt);break}n&&Le&&Et.alternate===null&&r(q,Le),H=g(Et,H,et),Ct===null?$e=Et:Ct.sibling=Et,Ct=Et,Le=dt}if(et===Z.length)return o(q,Le),ht&&ro(q,et),$e;if(Le===null){for(;etet?(dt=Le,Le=null):dt=Le.sibling;var nl=J(q,Le,Et.value,ue);if(nl===null){Le===null&&(Le=dt);break}n&&Le&&nl.alternate===null&&r(q,Le),H=g(nl,H,et),Ct===null?$e=nl:Ct.sibling=nl,Ct=nl,Le=dt}if(Et.done)return o(q,Le),ht&&ro(q,et),$e;if(Le===null){for(;!Et.done;et++,Et=Z.next())Et=fe(q,Et.value,ue),Et!==null&&(H=g(Et,H,et),Ct===null?$e=Et:Ct.sibling=Et,Ct=Et);return ht&&ro(q,et),$e}for(Le=s(Le);!Et.done;et++,Et=Z.next())Et=re(Le,q,et,Et.value,ue),Et!==null&&(n&&Et.alternate!==null&&Le.delete(Et.key===null?et:Et.key),H=g(Et,H,et),Ct===null?$e=Et:Ct.sibling=Et,Ct=Et);return n&&Le.forEach(function(qR){return r(q,qR)}),ht&&ro(q,et),$e}function Ut(q,H,Z,ue){if(typeof Z=="object"&&Z!==null&&Z.type===w&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case C:e:{for(var $e=Z.key;H!==null;){if(H.key===$e){if($e=Z.type,$e===w){if(H.tag===7){o(q,H.sibling),ue=f(H,Z.props.children),ue.return=q,q=ue;break e}}else if(H.elementType===$e||typeof $e=="object"&&$e!==null&&$e.$$typeof===F&&Nl($e)===H.type){o(q,H.sibling),ue=f(H,Z.props),Rc(ue,Z),ue.return=q,q=ue;break e}o(q,H);break}else r(q,H);H=H.sibling}Z.type===w?(ue=Tl(Z.props.children,q.mode,ue,Z.key),ue.return=q,q=ue):(ue=ud(Z.type,Z.key,Z.props,null,q.mode,ue),Rc(ue,Z),ue.return=q,q=ue)}return y(q);case O:e:{for($e=Z.key;H!==null;){if(H.key===$e)if(H.tag===4&&H.stateNode.containerInfo===Z.containerInfo&&H.stateNode.implementation===Z.implementation){o(q,H.sibling),ue=f(H,Z.children||[]),ue.return=q,q=ue;break e}else{o(q,H);break}else r(q,H);H=H.sibling}ue=tg(Z,q.mode,ue),ue.return=q,q=ue}return y(q);case F:return Z=Nl(Z),Ut(q,H,Z,ue)}if(ve(Z))return Ne(q,H,Z,ue);if(U(Z)){if($e=U(Z),typeof $e!="function")throw Error(i(150));return Z=$e.call(Z),Ge(q,H,Z,ue)}if(typeof Z.then=="function")return Ut(q,H,bd(Z),ue);if(Z.$$typeof===I)return Ut(q,H,hd(q,Z),ue);vd(q,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,H!==null&&H.tag===6?(o(q,H.sibling),ue=f(H,Z),ue.return=q,q=ue):(o(q,H),ue=eg(Z,q.mode,ue),ue.return=q,q=ue),y(q)):o(q,H)}return function(q,H,Z,ue){try{kc=0;var $e=Ut(q,H,Z,ue);return bs=null,$e}catch(Le){if(Le===ms||Le===pd)throw Le;var Ct=nr(29,Le,null,q.mode);return Ct.lanes=ue,Ct.return=q,Ct}}}var Ll=Fb(!0),Wb=Fb(!1),Po=!1;function hg(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gg(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Uo(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function $o(n,r,o){var s=n.updateQueue;if(s===null)return null;if(s=s.shared,(kt&2)!==0){var f=s.pending;return f===null?r.next=r:(r.next=f.next,f.next=r),s.pending=r,r=cd(n),jb(n,null,o),r}return sd(n,s,r,o),cd(n)}function Oc(n,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194048)!==0)){var s=r.lanes;s&=n.pendingLanes,o|=s,r.lanes=o,Fi(n,o)}}function pg(n,r){var o=n.updateQueue,s=n.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var f=null,g=null;if(o=o.firstBaseUpdate,o!==null){do{var y={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};g===null?f=g=y:g=g.next=y,o=o.next}while(o!==null);g===null?f=g=r:g=g.next=r}else f=g=r;o={baseState:s.baseState,firstBaseUpdate:f,lastBaseUpdate:g,shared:s.shared,callbacks:s.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=r:n.next=r,o.lastBaseUpdate=r}var mg=!1;function jc(){if(mg){var n=ps;if(n!==null)throw n}}function Tc(n,r,o,s){mg=!1;var f=n.updateQueue;Po=!1;var g=f.firstBaseUpdate,y=f.lastBaseUpdate,E=f.shared.pending;if(E!==null){f.shared.pending=null;var D=E,Q=D.next;D.next=null,y===null?g=Q:y.next=Q,y=D;var ce=n.alternate;ce!==null&&(ce=ce.updateQueue,E=ce.lastBaseUpdate,E!==y&&(E===null?ce.firstBaseUpdate=Q:E.next=Q,ce.lastBaseUpdate=D))}if(g!==null){var fe=f.baseState;y=0,ce=Q=D=null,E=g;do{var J=E.lane&-536870913,re=J!==E.lane;if(re?(ut&J)===J:(s&J)===J){J!==0&&J===gs&&(mg=!0),ce!==null&&(ce=ce.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var Ne=n,Ge=E;J=r;var Ut=o;switch(Ge.tag){case 1:if(Ne=Ge.payload,typeof Ne=="function"){fe=Ne.call(Ut,fe,J);break e}fe=Ne;break e;case 3:Ne.flags=Ne.flags&-65537|128;case 0:if(Ne=Ge.payload,J=typeof Ne=="function"?Ne.call(Ut,fe,J):Ne,J==null)break e;fe=x({},fe,J);break e;case 2:Po=!0}}J=E.callback,J!==null&&(n.flags|=64,re&&(n.flags|=8192),re=f.callbacks,re===null?f.callbacks=[J]:re.push(J))}else re={lane:J,tag:E.tag,payload:E.payload,callback:E.callback,next:null},ce===null?(Q=ce=re,D=fe):ce=ce.next=re,y|=J;if(E=E.next,E===null){if(E=f.shared.pending,E===null)break;re=E,E=re.next,re.next=null,f.lastBaseUpdate=re,f.shared.pending=null}}while(!0);ce===null&&(D=fe),f.baseState=D,f.firstBaseUpdate=Q,f.lastBaseUpdate=ce,g===null&&(f.shared.lanes=0),Go|=y,n.lanes=y,n.memoizedState=fe}}function Gb(n,r){if(typeof n!="function")throw Error(i(191,n));n.call(r)}function qb(n,r){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;ng?g:8;var y=N.T,E={};N.T=E,Vg(n,!1,r,o);try{var D=f(),Q=N.S;if(Q!==null&&Q(E,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var ce=L2(D,s);Ac(n,r,ce,lr(n))}else Ac(n,r,s,lr(n))}catch(fe){Ac(n,r,{then:function(){},status:"rejected",reason:fe},lr())}finally{te.p=g,y!==null&&E.types!==null&&(y.types=E.types),N.T=y}}function H2(){}function Ig(n,r,o,s){if(n.tag!==5)throw Error(i(476));var f=kv(n).queue;wv(n,f,r,oe,o===null?H2:function(){return Rv(n),o(s)})}function kv(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:so,lastRenderedState:oe},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:so,lastRenderedState:o},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function Rv(n){var r=kv(n);r.next===null&&(r=n.alternate.memoizedState),Ac(n,r.next.queue,{},lr())}function Ng(){return Qn(Xc)}function Ov(){return bn().memoizedState}function jv(){return bn().memoizedState}function B2(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var o=lr();n=Uo(o);var s=$o(r,n,o);s!==null&&($a(s,r,o),Oc(s,r,o)),r={cache:cg()},n.payload=r;return}r=r.return}}function F2(n,r,o){var s=lr();o={lane:s,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},jd(n)?zv(r,o):(o=Qh(n,r,o,s),o!==null&&($a(o,n,s),_v(o,r,s)))}function Tv(n,r,o){var s=lr();Ac(n,r,o,s)}function Ac(n,r,o,s){var f={lane:s,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(jd(n))zv(r,f);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=r.lastRenderedReducer,g!==null))try{var y=r.lastRenderedState,E=g(y,o);if(f.hasEagerState=!0,f.eagerState=E,At(E,y))return sd(n,r,f,0),Bt===null&&ld(),!1}catch{}if(o=Qh(n,r,f,s),o!==null)return $a(o,n,s),_v(o,r,s),!0}return!1}function Vg(n,r,o,s){if(s={lane:2,revertLane:hp(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},jd(n)){if(r)throw Error(i(479))}else r=Qh(n,o,s,2),r!==null&&$a(r,n,2)}function jd(n){var r=n.alternate;return n===Qe||r!==null&&r===Qe}function zv(n,r){xs=Sd=!0;var o=n.pending;o===null?r.next=r:(r.next=o.next,o.next=r),n.pending=r}function _v(n,r,o){if((o&4194048)!==0){var s=r.lanes;s&=n.pendingLanes,o|=s,r.lanes=o,Fi(n,o)}}var Ic={readContext:Qn,use:wd,useCallback:un,useContext:un,useEffect:un,useImperativeHandle:un,useLayoutEffect:un,useInsertionEffect:un,useMemo:un,useReducer:un,useRef:un,useState:un,useDebugValue:un,useDeferredValue:un,useTransition:un,useSyncExternalStore:un,useId:un,useHostTransitionStatus:un,useFormState:un,useActionState:un,useOptimistic:un,useMemoCache:un,useCacheRefresh:un};Ic.useEffectEvent=un;var Av={readContext:Qn,use:wd,useCallback:function(n,r){return wa().memoizedState=[n,r===void 0?null:r],n},useContext:Qn,useEffect:pv,useImperativeHandle:function(n,r,o){o=o!=null?o.concat([n]):null,Rd(4194308,4,xv.bind(null,r,n),o)},useLayoutEffect:function(n,r){return Rd(4194308,4,n,r)},useInsertionEffect:function(n,r){Rd(4,2,n,r)},useMemo:function(n,r){var o=wa();r=r===void 0?null:r;var s=n();if(Ml){nt(!0);try{n()}finally{nt(!1)}}return o.memoizedState=[s,r],s},useReducer:function(n,r,o){var s=wa();if(o!==void 0){var f=o(r);if(Ml){nt(!0);try{o(r)}finally{nt(!1)}}}else f=r;return s.memoizedState=s.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},s.queue=n,n=n.dispatch=F2.bind(null,Qe,n),[s.memoizedState,n]},useRef:function(n){var r=wa();return n={current:n},r.memoizedState=n},useState:function(n){n=jg(n);var r=n.queue,o=Tv.bind(null,Qe,r);return r.dispatch=o,[n.memoizedState,o]},useDebugValue:_g,useDeferredValue:function(n,r){var o=wa();return Ag(o,n,r)},useTransition:function(){var n=jg(!1);return n=wv.bind(null,Qe,n.queue,!0,!1),wa().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,o){var s=Qe,f=wa();if(ht){if(o===void 0)throw Error(i(407));o=o()}else{if(o=r(),Bt===null)throw Error(i(349));(ut&127)!==0||Jb(s,r,o)}f.memoizedState=o;var g={value:o,getSnapshot:r};return f.queue=g,pv(tv.bind(null,s,g,n),[n]),s.flags|=2048,Ss(9,{destroy:void 0},ev.bind(null,s,g,o,r),null),o},useId:function(){var n=wa(),r=Bt.identifierPrefix;if(ht){var o=wi,s=Ei;o=(s&~(1<<32-rt(s)-1)).toString(32)+o,r="_"+r+"R_"+o,o=Cd++,0<\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof s.is=="string"?y.createElement("select",{is:s.is}):y.createElement("select"),s.multiple?g.multiple=!0:s.size&&(g.size=s.size);break;default:g=typeof s.is=="string"?y.createElement(f,{is:s.is}):y.createElement(f)}}g[Vt]=r,g[Ht]=s;e:for(y=r.child;y!==null;){if(y.tag===5||y.tag===6)g.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===r)break e;for(;y.sibling===null;){if(y.return===null||y.return===r)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}r.stateNode=g;e:switch(ea(g,f,s),f){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&uo(r)}}return Qt(r),Xg(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,o),null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==s&&uo(r);else{if(typeof s!="string"&&r.stateNode===null)throw Error(i(166));if(n=ae.current,fs(r)){if(n=r.stateNode,o=r.memoizedProps,s=null,f=Zn,f!==null)switch(f.tag){case 27:case 5:s=f.memoizedProps}n[Vt]=r,n=!!(n.nodeValue===o||s!==null&&s.suppressHydrationWarning===!0||Zx(n.nodeValue,o)),n||Mo(r,!0)}else n=Yd(n).createTextNode(s),n[Vt]=r,r.stateNode=n}return Qt(r),null;case 31:if(o=r.memoizedState,n===null||n.memoizedState!==null){if(s=fs(r),o!==null){if(n===null){if(!s)throw Error(i(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(557));n[Vt]=r}else zl(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Qt(r),n=!1}else o=ig(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=o),n=!0;if(!n)return r.flags&256?(rr(r),r):(rr(r),null);if((r.flags&128)!==0)throw Error(i(558))}return Qt(r),null;case 13:if(s=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=fs(r),s!==null&&s.dehydrated!==null){if(n===null){if(!f)throw Error(i(318));if(f=r.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[Vt]=r}else zl(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Qt(r),f=!1}else f=ig(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=f),f=!0;if(!f)return r.flags&256?(rr(r),r):(rr(r),null)}return rr(r),(r.flags&128)!==0?(r.lanes=o,r):(o=s!==null,n=n!==null&&n.memoizedState!==null,o&&(s=r.child,f=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(f=s.alternate.memoizedState.cachePool.pool),g=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(g=s.memoizedState.cachePool.pool),g!==f&&(s.flags|=2048)),o!==n&&o&&(r.child.flags|=8192),Id(r,r.updateQueue),Qt(r),null);case 4:return ne(),n===null&&bp(r.stateNode.containerInfo),Qt(r),null;case 10:return oo(r.type),Qt(r),null;case 19:if(L(mn),s=r.memoizedState,s===null)return Qt(r),null;if(f=(r.flags&128)!==0,g=s.rendering,g===null)if(f)Vc(s,!1);else{if(dn!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(g=yd(n),g!==null){for(r.flags|=128,Vc(s,!1),n=g.updateQueue,r.updateQueue=n,Id(r,n),r.subtreeFlags=0,n=o,o=r.child;o!==null;)Tb(o,n),o=o.sibling;return G(mn,mn.current&1|2),ht&&ro(r,s.treeForkCount),r.child}n=n.sibling}s.tail!==null&&$t()>Dd&&(r.flags|=128,f=!0,Vc(s,!1),r.lanes=4194304)}else{if(!f)if(n=yd(g),n!==null){if(r.flags|=128,f=!0,n=n.updateQueue,r.updateQueue=n,Id(r,n),Vc(s,!0),s.tail===null&&s.tailMode==="hidden"&&!g.alternate&&!ht)return Qt(r),null}else 2*$t()-s.renderingStartTime>Dd&&o!==536870912&&(r.flags|=128,f=!0,Vc(s,!1),r.lanes=4194304);s.isBackwards?(g.sibling=r.child,r.child=g):(n=s.last,n!==null?n.sibling=g:r.child=g,s.last=g)}return s.tail!==null?(n=s.tail,s.rendering=n,s.tail=n.sibling,s.renderingStartTime=$t(),n.sibling=null,o=mn.current,G(mn,f?o&1|2:o&1),ht&&ro(r,s.treeForkCount),n):(Qt(r),null);case 22:case 23:return rr(r),vg(),s=r.memoizedState!==null,n!==null?n.memoizedState!==null!==s&&(r.flags|=8192):s&&(r.flags|=8192),s?(o&536870912)!==0&&(r.flags&128)===0&&(Qt(r),r.subtreeFlags&6&&(r.flags|=8192)):Qt(r),o=r.updateQueue,o!==null&&Id(r,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),s=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),s!==o&&(r.flags|=2048),n!==null&&L(Il),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),oo(Sn),Qt(r),null;case 25:return null;case 30:return null}throw Error(i(156,r.tag))}function X2(n,r){switch(ag(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return oo(Sn),ne(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return se(r),null;case 31:if(r.memoizedState!==null){if(rr(r),r.alternate===null)throw Error(i(340));zl()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 13:if(rr(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(i(340));zl()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return L(mn),null;case 4:return ne(),null;case 10:return oo(r.type),null;case 22:case 23:return rr(r),vg(),n!==null&&L(Il),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return oo(Sn),null;case 25:return null;default:return null}}function nx(n,r){switch(ag(r),r.tag){case 3:oo(Sn),ne();break;case 26:case 27:case 5:se(r);break;case 4:ne();break;case 31:r.memoizedState!==null&&rr(r);break;case 13:rr(r);break;case 19:L(mn);break;case 10:oo(r.type);break;case 22:case 23:rr(r),vg(),n!==null&&L(Il);break;case 24:oo(Sn)}}function Lc(n,r){try{var o=r.updateQueue,s=o!==null?o.lastEffect:null;if(s!==null){var f=s.next;o=f;do{if((o.tag&n)===n){s=void 0;var g=o.create,y=o.inst;s=g(),y.destroy=s}o=o.next}while(o!==f)}}catch(E){Nt(r,r.return,E)}}function Fo(n,r,o){try{var s=r.updateQueue,f=s!==null?s.lastEffect:null;if(f!==null){var g=f.next;s=g;do{if((s.tag&n)===n){var y=s.inst,E=y.destroy;if(E!==void 0){y.destroy=void 0,f=r;var D=o,Q=E;try{Q()}catch(ce){Nt(f,D,ce)}}}s=s.next}while(s!==g)}}catch(ce){Nt(r,r.return,ce)}}function ax(n){var r=n.updateQueue;if(r!==null){var o=n.stateNode;try{qb(r,o)}catch(s){Nt(n,n.return,s)}}}function rx(n,r,o){o.props=Dl(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(s){Nt(n,r,s)}}function Mc(n,r){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var s=n.stateNode;break;case 30:s=n.stateNode;break;default:s=n.stateNode}typeof o=="function"?n.refCleanup=o(s):o.current=s}}catch(f){Nt(n,r,f)}}function ki(n,r){var o=n.ref,s=n.refCleanup;if(o!==null)if(typeof s=="function")try{s()}catch(f){Nt(n,r,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(f){Nt(n,r,f)}else o.current=null}function ix(n){var r=n.type,o=n.memoizedProps,s=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&s.focus();break e;case"img":o.src?s.src=o.src:o.srcSet&&(s.srcset=o.srcSet)}}catch(f){Nt(n,n.return,f)}}function Kg(n,r,o){try{var s=n.stateNode;bR(s,n.type,o,r),s[Ht]=r}catch(f){Nt(n,n.return,f)}}function ox(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Zo(n.type)||n.tag===4}function Zg(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||ox(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Zo(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Qg(n,r,o){var s=n.tag;if(s===5||s===6)n=n.stateNode,r?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(n,r):(r=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,r.appendChild(n),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=Na));else if(s!==4&&(s===27&&Zo(n.type)&&(o=n.stateNode,r=null),n=n.child,n!==null))for(Qg(n,r,o),n=n.sibling;n!==null;)Qg(n,r,o),n=n.sibling}function Nd(n,r,o){var s=n.tag;if(s===5||s===6)n=n.stateNode,r?o.insertBefore(n,r):o.appendChild(n);else if(s!==4&&(s===27&&Zo(n.type)&&(o=n.stateNode),n=n.child,n!==null))for(Nd(n,r,o),n=n.sibling;n!==null;)Nd(n,r,o),n=n.sibling}function lx(n){var r=n.stateNode,o=n.memoizedProps;try{for(var s=n.type,f=r.attributes;f.length;)r.removeAttributeNode(f[0]);ea(r,s,o),r[Vt]=n,r[Ht]=o}catch(g){Nt(n,n.return,g)}}var fo=!1,wn=!1,Jg=!1,sx=typeof WeakSet=="function"?WeakSet:Set,Un=null;function K2(n,r){if(n=n.containerInfo,yp=tf,n=rd(n),yc(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var f=s.anchorOffset,g=s.focusNode;s=s.focusOffset;try{o.nodeType,g.nodeType}catch{o=null;break e}var y=0,E=-1,D=-1,Q=0,ce=0,fe=n,J=null;t:for(;;){for(var re;fe!==o||f!==0&&fe.nodeType!==3||(E=y+f),fe!==g||s!==0&&fe.nodeType!==3||(D=y+s),fe.nodeType===3&&(y+=fe.nodeValue.length),(re=fe.firstChild)!==null;)J=fe,fe=re;for(;;){if(fe===n)break t;if(J===o&&++Q===f&&(E=y),J===g&&++ce===s&&(D=y),(re=fe.nextSibling)!==null)break;fe=J,J=fe.parentNode}fe=re}o=E===-1||D===-1?null:{start:E,end:D}}else o=null}o=o||{start:0,end:0}}else o=null;for(Sp={focusedElem:n,selectionRange:o},tf=!1,Un=r;Un!==null;)if(r=Un,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,Un=n;else for(;Un!==null;){switch(r=Un,g=r.alternate,n=r.flags,r.tag){case 0:if((n&4)!==0&&(n=r.updateQueue,n=n!==null?n.events:null,n!==null))for(o=0;o title"))),ea(g,s,o),g[Vt]=n,qt(g),s=g;break e;case"link":var y=gy("link","href",f).get(s+(o.href||""));if(y){for(var E=0;EUt&&(y=Ut,Ut=Ge,Ge=y);var q=Ci(E,Ge),H=Ci(E,Ut);if(q&&H&&(re.rangeCount!==1||re.anchorNode!==q.node||re.anchorOffset!==q.offset||re.focusNode!==H.node||re.focusOffset!==H.offset)){var Z=fe.createRange();Z.setStart(q.node,q.offset),re.removeAllRanges(),Ge>Ut?(re.addRange(Z),re.extend(H.node,H.offset)):(Z.setEnd(H.node,H.offset),re.addRange(Z))}}}}for(fe=[],re=E;re=re.parentNode;)re.nodeType===1&&fe.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;Eo?32:o,N.T=null,o=op,op=null;var g=Yo,y=bo;if(_n=0,Rs=Yo=null,bo=0,(kt&6)!==0)throw Error(i(331));var E=kt;if(kt|=4,xx(g.current),mx(g,g.current,y,o),kt=E,Bc(0,!1),We&&typeof We.onPostCommitFiberRoot=="function")try{We.onPostCommitFiberRoot(Ie,g)}catch{}return!0}finally{te.p=f,N.T=s,Mx(n,r)}}function Px(n,r,o){r=Rr(o,r),r=Pg(n.stateNode,r,2),n=$o(n,r,2),n!==null&&(Ta(n,2),Ri(n))}function Nt(n,r,o){if(n.tag===3)Px(n,n,o);else for(;r!==null;){if(r.tag===3){Px(r,n,o);break}else if(r.tag===1){var s=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(qo===null||!qo.has(s))){n=Rr(o,n),o=Uv(2),s=$o(r,o,2),s!==null&&($v(o,s,r,n),Ta(s,2),Ri(s));break}}r=r.return}}function up(n,r,o){var s=n.pingCache;if(s===null){s=n.pingCache=new J2;var f=new Set;s.set(r,f)}else f=s.get(r),f===void 0&&(f=new Set,s.set(r,f));f.has(o)||(np=!0,f.add(o),n=rR.bind(null,n,r,o),r.then(n,n))}function rR(n,r,o){var s=n.pingCache;s!==null&&s.delete(r),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,Bt===n&&(ut&o)===o&&(dn===4||dn===3&&(ut&62914560)===ut&&300>$t()-Md?(kt&2)===0&&Os(n,0):ap|=o,ks===ut&&(ks=0)),Ri(n)}function Ux(n,r){r===0&&(r=Br()),n=jl(n,r),n!==null&&(Ta(n,r),Ri(n))}function iR(n){var r=n.memoizedState,o=0;r!==null&&(o=r.retryLane),Ux(n,o)}function oR(n,r){var o=0;switch(n.tag){case 31:case 13:var s=n.stateNode,f=n.memoizedState;f!==null&&(o=f.retryLane);break;case 19:s=n.stateNode;break;case 22:s=n.stateNode._retryCache;break;default:throw Error(i(314))}s!==null&&s.delete(r),Ux(n,o)}function lR(n,r){return ft(n,r)}var Fd=null,Ts=null,dp=!1,Wd=!1,fp=!1,Ko=0;function Ri(n){n!==Ts&&n.next===null&&(Ts===null?Fd=Ts=n:Ts=Ts.next=n),Wd=!0,dp||(dp=!0,cR())}function Bc(n,r){if(!fp&&Wd){fp=!0;do for(var o=!1,s=Fd;s!==null;){if(n!==0){var f=s.pendingLanes;if(f===0)var g=0;else{var y=s.suspendedLanes,E=s.pingedLanes;g=(1<<31-rt(42|n)+1)-1,g&=f&~(y&~E),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(o=!0,Fx(s,g))}else g=ut,g=bt(s,s===Bt?g:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(g&3)===0||va(s,g)||(o=!0,Fx(s,g));s=s.next}while(o);fp=!1}}function sR(){$x()}function $x(){Wd=dp=!1;var n=0;Ko!==0&&xR()&&(n=Ko);for(var r=$t(),o=null,s=Fd;s!==null;){var f=s.next,g=Hx(s,r);g===0?(s.next=null,o===null?Fd=f:o.next=f,f===null&&(Ts=o)):(o=s,(n!==0||(g&3)!==0)&&(Wd=!0)),s=f}_n!==0&&_n!==5||Bc(n),Ko!==0&&(Ko=0)}function Hx(n,r){for(var o=n.suspendedLanes,s=n.pingedLanes,f=n.expirationTimes,g=n.pendingLanes&-62914561;0E)break;var ce=D.transferSize,fe=D.initiatorType;ce&&Qx(fe)&&(D=D.responseEnd,y+=ce*(D"u"?null:document;function uy(n,r,o){var s=zs;if(s&&typeof r=="string"&&r){var f=zn(r);f='link[rel="'+n+'"][href="'+f+'"]',typeof o=="string"&&(f+='[crossorigin="'+o+'"]'),cy.has(f)||(cy.add(f),n={rel:n,crossOrigin:o,href:r},s.querySelector(f)===null&&(r=s.createElement("link"),ea(r,"link",n),qt(r),s.head.appendChild(r)))}}function jR(n){vo.D(n),uy("dns-prefetch",n,null)}function TR(n,r){vo.C(n,r),uy("preconnect",n,r)}function zR(n,r,o){vo.L(n,r,o);var s=zs;if(s&&n&&r){var f='link[rel="preload"][as="'+zn(r)+'"]';r==="image"&&o&&o.imageSrcSet?(f+='[imagesrcset="'+zn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(f+='[imagesizes="'+zn(o.imageSizes)+'"]')):f+='[href="'+zn(n)+'"]';var g=f;switch(r){case"style":g=_s(n);break;case"script":g=As(n)}Ar.has(g)||(n=x({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:n,as:r},o),Ar.set(g,n),s.querySelector(f)!==null||r==="style"&&s.querySelector(qc(g))||r==="script"&&s.querySelector(Yc(g))||(r=s.createElement("link"),ea(r,"link",n),qt(r),s.head.appendChild(r)))}}function _R(n,r){vo.m(n,r);var o=zs;if(o&&n){var s=r&&typeof r.as=="string"?r.as:"script",f='link[rel="modulepreload"][as="'+zn(s)+'"][href="'+zn(n)+'"]',g=f;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=As(n)}if(!Ar.has(g)&&(n=x({rel:"modulepreload",href:n},r),Ar.set(g,n),o.querySelector(f)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Yc(g)))return}s=o.createElement("link"),ea(s,"link",n),qt(s),o.head.appendChild(s)}}}function AR(n,r,o){vo.S(n,r,o);var s=zs;if(s&&n){var f=Aa(s).hoistableStyles,g=_s(n);r=r||"default";var y=f.get(g);if(!y){var E={loading:0,preload:null};if(y=s.querySelector(qc(g)))E.loading=5;else{n=x({rel:"stylesheet",href:n,"data-precedence":r},o),(o=Ar.get(g))&&jp(n,o);var D=y=s.createElement("link");qt(D),ea(D,"link",n),D._p=new Promise(function(Q,ce){D.onload=Q,D.onerror=ce}),D.addEventListener("load",function(){E.loading|=1}),D.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Kd(y,r,s)}y={type:"stylesheet",instance:y,count:1,state:E},f.set(g,y)}}}function IR(n,r){vo.X(n,r);var o=zs;if(o&&n){var s=Aa(o).hoistableScripts,f=As(n),g=s.get(f);g||(g=o.querySelector(Yc(f)),g||(n=x({src:n,async:!0},r),(r=Ar.get(f))&&Tp(n,r),g=o.createElement("script"),qt(g),ea(g,"link",n),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(f,g))}}function NR(n,r){vo.M(n,r);var o=zs;if(o&&n){var s=Aa(o).hoistableScripts,f=As(n),g=s.get(f);g||(g=o.querySelector(Yc(f)),g||(n=x({src:n,async:!0,type:"module"},r),(r=Ar.get(f))&&Tp(n,r),g=o.createElement("script"),qt(g),ea(g,"link",n),o.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(f,g))}}function dy(n,r,o,s){var f=(f=ae.current)?Xd(f):null;if(!f)throw Error(i(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(r=_s(o.href),o=Aa(f).hoistableStyles,s=o.get(r),s||(s={type:"style",instance:null,count:0,state:null},o.set(r,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=_s(o.href);var g=Aa(f).hoistableStyles,y=g.get(n);if(y||(f=f.ownerDocument||f,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(n,y),(g=f.querySelector(qc(n)))&&!g._p&&(y.instance=g,y.state.loading=5),Ar.has(n)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Ar.set(n,o),g||VR(f,n,o,y.state))),r&&s===null)throw Error(i(528,""));return y}if(r&&s!==null)throw Error(i(529,""));return null;case"script":return r=o.async,o=o.src,typeof o=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=As(o),o=Aa(f).hoistableScripts,s=o.get(r),s||(s={type:"script",instance:null,count:0,state:null},o.set(r,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,n))}}function _s(n){return'href="'+zn(n)+'"'}function qc(n){return'link[rel="stylesheet"]['+n+"]"}function fy(n){return x({},n,{"data-precedence":n.precedence,precedence:null})}function VR(n,r,o,s){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?s.loading=1:(r=n.createElement("link"),s.preload=r,r.addEventListener("load",function(){return s.loading|=1}),r.addEventListener("error",function(){return s.loading|=2}),ea(r,"link",o),qt(r),n.head.appendChild(r))}function As(n){return'[src="'+zn(n)+'"]'}function Yc(n){return"script[async]"+n}function hy(n,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var s=n.querySelector('style[data-href~="'+zn(o.href)+'"]');if(s)return r.instance=s,qt(s),s;var f=x({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return s=(n.ownerDocument||n).createElement("style"),qt(s),ea(s,"style",f),Kd(s,o.precedence,n),r.instance=s;case"stylesheet":f=_s(o.href);var g=n.querySelector(qc(f));if(g)return r.state.loading|=4,r.instance=g,qt(g),g;s=fy(o),(f=Ar.get(f))&&jp(s,f),g=(n.ownerDocument||n).createElement("link"),qt(g);var y=g;return y._p=new Promise(function(E,D){y.onload=E,y.onerror=D}),ea(g,"link",s),r.state.loading|=4,Kd(g,o.precedence,n),r.instance=g;case"script":return g=As(o.src),(f=n.querySelector(Yc(g)))?(r.instance=f,qt(f),f):(s=o,(f=Ar.get(g))&&(s=x({},o),Tp(s,f)),n=n.ownerDocument||n,f=n.createElement("script"),qt(f),ea(f,"link",s),n.head.appendChild(f),r.instance=f);case"void":return null;default:throw Error(i(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(s=r.instance,r.state.loading|=4,Kd(s,o.precedence,n));return r.instance}function Kd(n,r,o){for(var s=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=s.length?s[s.length-1]:null,g=f,y=0;y title"):null)}function LR(n,r,o){if(o===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(n=r.disabled,typeof r.precedence=="string"&&n==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function my(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function MR(n,r,o,s){if(o.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var f=_s(s.href),g=r.querySelector(qc(f));if(g){r=g._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=Qd.bind(n),r.then(n,n)),o.state.loading|=4,o.instance=g,qt(g);return}g=r.ownerDocument||r,s=fy(s),(f=Ar.get(f))&&jp(s,f),g=g.createElement("link"),qt(g);var y=g;y._p=new Promise(function(E,D){y.onload=E,y.onerror=D}),ea(g,"link",s),o.instance=g}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(o,r),(r=o.state.preload)&&(o.state.loading&3)===0&&(n.count++,o=Qd.bind(n),r.addEventListener("load",o),r.addEventListener("error",o))}}var zp=0;function DR(n,r){return n.stylesheets&&n.count===0&&ef(n,n.stylesheets),0zp?50:800)+r);return n.unsuspend=o,function(){n.unsuspend=null,clearTimeout(s),clearTimeout(f)}}:null}function Qd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ef(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Jd=null;function ef(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Jd=new Map,r.forEach(PR,n),Jd=null,Qd.call(n))}function PR(n,r){if(!(r.state.loading&4)){var o=Jd.get(n);if(o)var s=o.get(null);else{o=new Map,Jd.set(n,o);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Pp.exports=aO(),Pp.exports}var iO=rO();function vC(e){var t=Object.create(null);return function(a){return t[a]===void 0&&(t[a]=e(a)),t[a]}}var oO=/^((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)-.*))$/,lO=vC(function(e){return oO.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function sO(e){if(e.sheet)return e.sheet;for(var t=0;t0?ra(oc,--Wa):0,Ks--,Rn===10&&(Ks=1,ih--),Rn}function hr(){return Rn=Wa2||Ou(Rn)>3?"":" "}function SO(e,t){for(;--t&&hr()&&!(Rn<48||Rn>102||Rn>57&&Rn<65||Rn>70&&Rn<97););return Du(e,Rf()+(t<6&&Ii()==32&&hr()==32))}function Im(e){for(;hr();)switch(Rn){case e:return Wa;case 34:case 39:e!==34&&e!==39&&Im(Rn);break;case 40:e===41&&Im(e);break;case 92:hr();break}return Wa}function CO(e,t){for(;hr()&&e+Rn!==57;)if(e+Rn===84&&Ii()===47)break;return"/*"+Du(t,Wa-1)+"*"+rh(e===47?e:hr())}function EO(e){for(;!Ou(Ii());)hr();return Du(e,Wa)}function wO(e){return wC(jf("",null,null,null,[""],e=EC(e),0,[0],e))}function jf(e,t,a,i,l,c,d,h,p){for(var b=0,v=0,x=d,S=0,C=0,O=0,w=1,T=1,A=1,_=0,I="",M=l,R=c,V=i,P=I;T;)switch(O=_,_=hr()){case 40:if(O!=108&&ra(P,x-1)==58){Am(P+=Ot(Of(_),"&","&\f"),"&\f")!=-1&&(A=-1);break}case 34:case 39:case 91:P+=Of(_);break;case 9:case 10:case 13:case 32:P+=yO(O);break;case 92:P+=SO(Rf()-1,7);continue;case 47:switch(Ii()){case 42:case 47:cf(kO(CO(hr(),Rf()),t,a),p);break;default:P+="/"}break;case 123*w:h[b++]=Ti(P)*A;case 125*w:case 59:case 0:switch(_){case 0:case 125:T=0;case 59+v:A==-1&&(P=Ot(P,/\f/g,"")),C>0&&Ti(P)-x&&cf(C>32?Hy(P+";",i,a,x-1):Hy(Ot(P," ","")+";",i,a,x-2),p);break;case 59:P+=";";default:if(cf(V=$y(P,t,a,b,v,l,h,I,M=[],R=[],x),c),_===123)if(v===0)jf(P,t,V,V,M,c,x,h,R);else switch(S===99&&ra(P,3)===110?100:S){case 100:case 108:case 109:case 115:jf(e,V,V,i&&cf($y(e,V,V,0,0,l,h,I,l,M=[],x),R),l,R,x,h,i?M:R);break;default:jf(P,V,V,V,[""],R,0,h,R)}}b=v=C=0,w=A=1,I=P="",x=d;break;case 58:x=1+Ti(P),C=O;default:if(w<1){if(_==123)--w;else if(_==125&&w++==0&&xO()==125)continue}switch(P+=rh(_),_*w){case 38:A=v>0?1:(P+="\f",-1);break;case 44:h[b++]=(Ti(P)-1)*A,A=1;break;case 64:Ii()===45&&(P+=Of(hr())),S=Ii(),v=x=Ti(I=P+=EO(Rf())),_++;break;case 45:O===45&&Ti(P)==2&&(w=0)}}return c}function $y(e,t,a,i,l,c,d,h,p,b,v){for(var x=l-1,S=l===0?c:[""],C=f0(S),O=0,w=0,T=0;O0?S[A]+" "+_:Ot(_,/&\f/g,S[A])))&&(p[T++]=I);return oh(e,t,a,l===0?u0:h,p,b,v)}function kO(e,t,a){return oh(e,t,a,xC,rh(vO()),Ru(e,2,-2),0)}function Hy(e,t,a,i){return oh(e,t,a,d0,Ru(e,0,i),Ru(e,i+1,-1),i)}function Fs(e,t){for(var a="",i=f0(e),l=0;l6)switch(ra(e,t+1)){case 109:if(ra(e,t+4)!==45)break;case 102:return Ot(e,/(.+:)(.+)-([^]+)/,"$1"+Rt+"$2-$3$1"+Ff+(ra(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Am(e,"stretch")?kC(Ot(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ra(e,t+1)!==115)break;case 6444:switch(ra(e,Ti(e)-3-(~Am(e,"!important")&&10))){case 107:return Ot(e,":",":"+Rt)+e;case 101:return Ot(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rt+(ra(e,14)===45?"inline-":"")+"box$3$1"+Rt+"$2$3$1"+ga+"$2box$3")+e}break;case 5936:switch(ra(e,t+11)){case 114:return Rt+e+ga+Ot(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rt+e+ga+Ot(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rt+e+ga+Ot(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rt+e+ga+e+e}return e}var NO=function(t,a,i,l){if(t.length>-1&&!t.return)switch(t.type){case d0:t.return=kC(t.value,t.length);break;case yC:return Fs([tu(t,{value:Ot(t.value,"@","@"+Rt)})],l);case u0:if(t.length)return bO(t.props,function(c){switch(mO(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fs([tu(t,{props:[Ot(c,/:(read-\w+)/,":"+Ff+"$1")]})],l);case"::placeholder":return Fs([tu(t,{props:[Ot(c,/:(plac\w+)/,":"+Rt+"input-$1")]}),tu(t,{props:[Ot(c,/:(plac\w+)/,":"+Ff+"$1")]}),tu(t,{props:[Ot(c,/:(plac\w+)/,ga+"input-$1")]})],l)}return""})}},VO=[NO],LO=function(t){var a=t.key;if(a==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(w){var T=w.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var l=t.stylisPlugins||VO,c={},d,h=[];d=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(w){for(var T=w.getAttribute("data-emotion").split(" "),A=1;A=4;++i,l-=4)a=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,t=(a&65535)*1540483477+((a>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&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 HO={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},BO=/[A-Z]|^ms/g,FO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,OC=function(t){return t.charCodeAt(1)===45},qy=function(t){return t!=null&&typeof t!="boolean"},Wp=vC(function(e){return OC(e)?e:e.replace(BO,"-$&").toLowerCase()}),Yy=function(t,a){switch(t){case"animation":case"animationName":if(typeof a=="string")return a.replace(FO,function(i,l,c){return zi={name:l,styles:c,next:zi},l})}return HO[t]!==1&&!OC(t)&&typeof a=="number"&&a!==0?a+"px":a};function ju(e,t,a){if(a==null)return"";var i=a;if(i.__emotion_styles!==void 0)return i;switch(typeof a){case"boolean":return"";case"object":{var l=a;if(l.anim===1)return zi={name:l.name,styles:l.styles,next:zi},l.name;var c=a;if(c.styles!==void 0){var d=c.next;if(d!==void 0)for(;d!==void 0;)zi={name:d.name,styles:d.styles,next:zi},d=d.next;var h=c.styles+";";return h}return WO(e,t,a)}case"function":{if(e!==void 0){var p=zi,b=a(e);return zi=p,ju(e,t,b)}break}}var v=a;if(t==null)return v;var x=t[v];return x!==void 0?x:v}function WO(e,t,a){var i="";if(Array.isArray(a))for(var l=0;li?.(...a))}}const QO=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),JO=/^on[A-Z]/;function Tu(...e){let t={};for(let a of e){for(let i in t){if(JO.test(i)&&typeof t[i]=="function"&&typeof a[i]=="function"){t[i]=ZO(t[i],a[i]);continue}if(i==="className"||i==="class"){t[i]=QO(t[i],a[i]);continue}if(i==="style"){t[i]=Object.assign({},t[i]??{},a[i]??{});continue}t[i]=a[i]!==void 0?a[i]:t[i]}for(let i in a)t[i]===void 0&&(t[i]=a[i])}return t}const ej=parseInt(m.version.split(".")[0],10),tj=ej>=19;function Gp(e,t){if(e!=null){if(typeof e=="function")return e(t);try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function nj(...e){const t=e.filter(a=>a!=null);if(tj){const a=new Map;return i=>(t.forEach(l=>{const c=Gp(l,i);c&&a.set(l,c)}),()=>{t.forEach(l=>{const c=a.get(l);c&&typeof c=="function"?c():Gp(l,null)}),a.clear()})}else return a=>{t.forEach(i=>{Gp(i,a)})}}function lc(e){const t=Object.assign({},e);for(let a in t)t[a]===void 0&&delete t[a];return t}const Ba=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),pr=e=>typeof e=="string",x0=e=>typeof e=="function",ia=(...e)=>{const t=[];for(let a=0;a{const t=e.reduce((a,i)=>(i?.forEach(l=>a.add(l)),a),new Set([]));return Array.from(t)};function ij(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Ws(e={}){const{name:t,strict:a=!0,hookName:i="useContext",providerName:l="Provider",errorMessage:c,defaultValue:d}=e,h=m.createContext(d);h.displayName=t;function p(){const b=m.useContext(h);if(!b&&a){const v=new Error(c??ij(i,l));throw v.name="ContextError",Error.captureStackTrace?.(v,p),v}return b}return[h.Provider,p,h]}const[oj,Pu]=Ws({name:"ChakraContext",strict:!0,providerName:""});function lj(e){const{value:t,children:a}=e;return u.jsxs(oj,{value:t,children:[!t._config.disableLayers&&u.jsx(Qy,{styles:t.layers.atRule}),u.jsx(Qy,{styles:t._global}),a]})}const sj=(e,t)=>{const a={},i={},l=Object.keys(e);for(const c of l)t(c)?i[c]=e[c]:a[c]=e[c];return[i,a]},Gs=(e,t)=>{const a=x0(t)?t:i=>t.includes(i);return sj(e,a)},cj=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function uj(e){return typeof e=="string"&&cj.has(e)}function dj(e,t,a){const{css:i,isValidProperty:l}=Pu(),{children:c,...d}=e,h=m.useMemo(()=>{const[S,C]=Gs(d,_=>a(_,t.variantKeys)),[O,w]=Gs(C,t.variantKeys),[T,A]=Gs(w,l);return{forwardedProps:S,variantProps:O,styleProps:T,elementProps:A}},[t.variantKeys,a,d,l]),{css:p,...b}=h.styleProps,v=m.useMemo(()=>{const S={...h.variantProps},C=t.variantKeys.includes("colorPalette"),O=t.variantKeys.includes("orientation");return C||(S.colorPalette=d.colorPalette),O||(S.orientation=d.orientation),t(S)},[t,h.variantProps,d.colorPalette,d.orientation]);return{styles:m.useMemo(()=>i(v,...fj(p),b),[i,v,p,b]),props:{...h.forwardedProps,...h.elementProps,children:c}}}const fj=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),hj=aj(lO),gj=hj,pj=e=>e!=="theme",mj=(e,t,a)=>{let i;if(t){const l=t.shouldForwardProp;i=e.__emotion_forwardProp&&l?c=>e.__emotion_forwardProp(c)&&l(c):l}return typeof i!="function"&&a&&(i=e.__emotion_forwardProp),i};let bj=typeof document<"u";const Jy=({cache:e,serialized:t,isStringTag:a})=>{h0(e,t,a);const i=TC(()=>g0(e,t,a));if(!bj&&i!==void 0){let l=t.name,c=t.next;for(;c!==void 0;)l=ia(l,c.name),c=c.next;return u.jsx("style",{"data-emotion":ia(e.key,l),dangerouslySetInnerHTML:{__html:i},nonce:e.sheet.nonce})}return null},eS={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},vj=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),xj=(e,t={},a={})=>{if(vj(eS,e)){a.forwardProps||(a.forwardProps=[]);const b=eS[e];a.forwardProps=y0([...a.forwardProps,...b])}const i=e.__emotion_real===e,l=i&&e.__emotion_base||e;let c,d;a!==void 0&&(c=a.label,d=a.target);let h=[];const p=m0((b,v,x)=>{const{cva:S,isValidProperty:C}=Pu(),O=t.__cva__?t:S(t),w=Sj(e.__emotion_cva,O),T=ve=>(N,te)=>ve.includes(N)?!0:!te?.includes(N)&&!C(N);!a.shouldForwardProp&&a.forwardProps&&(a.shouldForwardProp=T(a.forwardProps));const A=(ve,N)=>{const te=typeof e=="string"&&e.charCodeAt(0)>96?gj:pj,oe=!N?.includes(ve)&&!C(ve);return te(ve)&&oe},_=mj(e,a,i)||A,I=m.useMemo(()=>Object.assign({},a.defaultProps,lc(b)),[b]),{props:M,styles:R}=dj(I,w,_);let V="",P=[R],F=M;if(M.theme==null){F={};for(let ve in M)F[ve]=M[ve];F.theme=m.useContext(b0)}typeof M.className=="string"?V=RC(v.registered,P,M.className):M.className!=null&&(V=ia(V,M.className));const B=p0(h.concat(P),v.registered,F);B.styles&&(V=ia(V,`${v.key}-${B.name}`)),d!==void 0&&(V=ia(V,d));const W=!_("as");let Y=W&&M.as||l,U={};for(let ve in M)if(!(W&&ve==="as")){if(uj(ve)){const N=ve.replace("html","").toLowerCase();U[N]=M[ve];continue}_(ve)&&(U[ve]=M[ve])}let be=V.trim();be?U.className=be:Reflect.deleteProperty(U,"className"),U.ref=x;const de=a.forwardAsChild||a.forwardProps?.includes("asChild");if(M.asChild&&!de){const ve=m.isValidElement(M.children)?m.Children.only(M.children):m.Children.toArray(M.children).find(m.isValidElement);if(!ve)throw new Error("[chakra-ui > factory] No valid child found");Y=ve.type,U.children=null,Reflect.deleteProperty(U,"asChild"),U=Tu(U,ve.props),U.ref=nj(x,rj(ve))}return U.as&&de?(U.as=void 0,u.jsxs(m.Fragment,{children:[u.jsx(Jy,{cache:v,serialized:B,isStringTag:typeof Y=="string"}),u.jsx(Y,{asChild:!0,...U,children:u.jsx(M.as,{children:U.children})})]})):u.jsxs(m.Fragment,{children:[u.jsx(Jy,{cache:v,serialized:B,isStringTag:typeof Y=="string"}),u.jsx(Y,{...U})]})});return p.displayName=c!==void 0?c:`chakra(${typeof l=="string"?l:l.displayName||l.name||"Component"})`,p.__emotion_real=p,p.__emotion_base=l,p.__emotion_forwardProp=a.shouldForwardProp,p.__emotion_cva=t,Object.defineProperty(p,"toString",{value(){return`.${d}`}}),p},qp=xj.bind(),Yp=new Map,yj=new Proxy(qp,{apply(e,t,a){return qp(...a)},get(e,t){return Yp.has(t)||Yp.set(t,qp(t)),Yp.get(t)}}),Kt=yj,Sj=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),$=Kt("div");$.displayName="Box";const _C=Object.freeze({}),AC=Object.freeze({});function S0(e){const{key:t,recipe:a}=e,i=Pu();return m.useMemo(()=>{const l=a||(t!=null?i.getRecipe(t):{});return i.cva(structuredClone(l))},[t,a,i])}const Cj=e=>e.charAt(0).toUpperCase()+e.slice(1);function Oo(e){const{key:t,recipe:a}=e,i=Cj(t||a.className||"Component"),[l,c]=Ws({strict:!1,name:`${i}PropsContext`,providerName:`${i}PropsContext`});function d(b){const{unstyled:v,...x}=b,S=S0({key:t,recipe:x.recipe||a}),[C,O]=m.useMemo(()=>S.splitVariantProps(x),[S,x]);return{styles:v?_C:S(C),className:S.className,props:O}}const h=(b,v)=>{const x=Kt(b,{},v),S=m.forwardRef((C,O)=>{const w=c(),T=m.useMemo(()=>Tu(w,C),[C,w]),{styles:A,className:_,props:I}=d(T);return u.jsx(x,{...I,ref:O,css:[A,T.css],className:ia(_,T.className)})});return S.displayName=b.displayName||b.name,S};function p(){return l}return{withContext:h,PropsProvider:l,withPropsProvider:p,usePropsContext:c,useRecipeResult:d}}const vn=m.forwardRef(function(t,a){const{templateAreas:i,column:l,row:c,autoFlow:d,autoRows:h,templateRows:p,autoColumns:b,templateColumns:v,inline:x,...S}=t;return u.jsx(Kt.div,{...S,ref:a,css:[{display:x?"inline-grid":"grid",gridTemplateAreas:i,gridAutoColumns:b,gridColumn:l,gridRow:c,gridAutoFlow:d,gridAutoRows:h,gridTemplateRows:p,gridTemplateColumns:v},t.css]})});vn.displayName="Grid";function Tf(e){return e==null?[]:Array.isArray(e)?e:[e]}var qs=e=>e[0],lh=e=>e[e.length-1],Ej=(e,t)=>e.indexOf(t)!==-1,Xl=(e,...t)=>e.concat(t),Zl=(e,...t)=>e.filter(a=>!t.includes(a)),tS=(e,t)=>e.filter((a,i)=>i!==t),ol=e=>Array.from(new Set(e)),Xp=(e,t)=>{const a=new Set(t);return e.filter(i=>!a.has(i))},Zs=(e,t)=>Ej(e,t)?Zl(e,t):Xl(e,t);function IC(e,t,a={}){const{step:i=1,loop:l=!0}=a,c=t+i,d=e.length,h=d-1;return t===-1?i>0?0:h:c<0?l?h:0:c>=d?l?0:t>d?d:t:c}function wj(e,t,a={}){return e[IC(e,t,a)]}function kj(e,t,a={}){const{step:i=1,loop:l=!0}=a;return IC(e,t,{step:-i,loop:l})}function Rj(e,t,a={}){return e[kj(e,t,a)]}function nS(e,t){return e.reduce(([a,i],l)=>(t(l)?a.push(l):i.push(l),[a,i]),[[],[]])}var aS=e=>e?.constructor.name==="Array",Oj=(e,t)=>{if(e.length!==t.length)return!1;for(let a=0;a{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(aS(e)&&aS(t))return Oj(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const a=Object.keys(t??Object.create(null)),i=a.length;for(let l=0;lArray.isArray(e),jj=e=>e===!0||e===!1,NC=e=>e!=null&&typeof e=="object",Kl=e=>NC(e)&&!mu(e),zf=e=>typeof e=="string",ll=e=>typeof e=="function",Tj=e=>e==null,So=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),zj=e=>Object.prototype.toString.call(e),VC=Function.prototype.toString,_j=VC.call(Object),Aj=e=>{if(!NC(e)||zj(e)!="[object Object]"||Vj(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const a=So(t,"constructor")&&t.constructor;return typeof a=="function"&&a instanceof a&&VC.call(a)==_j},Ij=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,Nj=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,Vj=e=>Ij(e)||Nj(e),Lj=e=>e(),Mj=()=>{},zu=(...e)=>(...t)=>{e.forEach(function(a){a?.(...t)})};function yo(e,t,...a){if(e in t){const l=t[e];return ll(l)?l(...a):l}const i=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(i,yo),i}var LC=(e,t)=>{try{return e()}catch(a){return a instanceof Error&&Error.captureStackTrace?.(a,LC),t?.()}},{floor:MC,abs:rS,round:sh,min:Dj,max:Pj,pow:Uj,sign:$j}=Math,Vm=e=>Number.isNaN(e),hl=e=>Vm(e)?0:e,DC=(e,t)=>(e%t+t)%t,Hj=(e,t)=>(e%t+t)%t,Bj=(e,t,a)=>e===0?a:t[e-1],Fj=(e,t,a)=>e===t.length-1?a:t[e+1],Wj=(e,t)=>hl(e)>=t,Gj=(e,t)=>hl(e)<=t,PC=(e,t,a)=>{const i=hl(e),l=t==null||i>=t,c=a==null||i<=a;return l&&c},qj=(e,t,a)=>sh((hl(e)-t)/a)*a+t,Bn=(e,t,a)=>Dj(Pj(hl(e),t),a),ch=(e,t,a)=>(hl(e)-t)/(a-t),C0=(e,t,a,i)=>Bn(qj(e*(a-t)+t,t,i),t,a),iS=(e,t)=>{let a=e,i=t.toString(),l=i.indexOf("."),c=l>=0?i.length-l:0;if(c>0){let d=Uj(10,c);a=sh(a*d)/d}return a},Kp=(e,t)=>typeof t=="number"?MC(e*t+.5)/t:sh(e),_u=(e,t,a,i)=>{const l=t!=null?Number(t):0,c=Number(a),d=(e-l)%i;let h=rS(d)*2>=i?e+$j(d)*(i-rS(d)):e-d;if(h=iS(h,i),!Vm(l)&&hc){const p=MC((c-l)/i),b=l+p*i;h=p<=0||be[t]===a?e:[...e.slice(0,t),a,...e.slice(t+1)];function UC(e,t){const a=Bj(e,t.values,t.min),i=Fj(e,t.values,t.max);let l=t.values.slice();return function(d){let h=_u(d,a,i,t.step);return l=bu(l,e,d),l[e]=h,l}}function Yj(e,t){const a=t.values[e]+t.step;return UC(e,t)(a)}function Xj(e,t){const a=t.values[e]-t.step;return UC(e,t)(a)}var $C=(e,t,a,i)=>e.map((l,c)=>({min:c===0?t:e[c-1]+i,max:c===e.length-1?a:e[c+1]-i,value:l})),Lm=(e,t)=>{const[a,i]=e,[l,c]=t;return d=>a===i||l===c?l:l+(c-l)/(i-a)*(d-a)},Xt=(e,t=0,a=10)=>{const i=Math.pow(a,t);return sh(e*i)/i},oS=e=>{if(!Number.isFinite(e))return 0;let t=1,a=0;for(;Math.round(e*t)/t!==e;)t*=10,a+=1;return a},HC=(e,t,a)=>{let i=t==="+"?e+a:e-a;if(e%1!==0||a%1!==0){const l=10**Math.max(oS(e),oS(a));e=Math.round(e*l),a=Math.round(a*l),i=t==="+"?e+a:e-a,i/=l}return i},Kj=(e,t)=>HC(hl(e),"+",t),Zj=(e,t)=>HC(hl(e),"-",t),lS=e=>typeof e=="number"?`${e}px`:e;function E0(e){if(!Aj(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(i=>typeof i=="string"),a={};for(const i of t){const l=e[i];l!==void 0&&(a[i]=E0(l))}return a}function Qj(e,t){const a={};for(const i of t){const l=e[i];l!==void 0&&(a[i]=l)}return a}function Jj(e,t=Object.is){let a={...e};const i=new Set,l=v=>(i.add(v),()=>i.delete(v)),c=()=>{i.forEach(v=>v())};return{subscribe:l,get:v=>a[v],set:(v,x)=>{t(a[v],x)||(a[v]=x,c())},update:v=>{let x=!1;for(const S in v){const C=v[S];C!==void 0&&!t(a[S],C)&&(a[S]=C,x=!0)}x&&c()},snapshot:()=>({...a})}}function Au(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function BC(e,t){if(e==null)throw new Error(t())}function eT(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function gl(e={}){const{name:t,strict:a=!0,hookName:i="useContext",providerName:l="Provider",errorMessage:c,defaultValue:d}=e,h=m.createContext(d);h.displayName=t;function p(){const b=m.useContext(h);if(!b&&a){const v=new Error(c??eT(i,l));throw v.name="ContextError",So(Error,"captureStackTrace")&&ll(Error.captureStackTrace)&&Error.captureStackTrace(v,p),v}return b}return[h.Provider,p,h]}const[FU,FC]=gl({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var tT=Object.defineProperty,nT=(e,t,a)=>t in e?tT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Zp=(e,t,a)=>nT(e,typeof t!="symbol"?t+"":t,a);function aT(e){if(!e)return!1;try{return e.selectionStart===0&&e.selectionEnd===0}catch{return e.value===""}}function rT(e){if(!e)return;const t=e.selectionStart??0,a=e.selectionEnd??0;Math.abs(a-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var sS=e=>Math.max(0,Math.min(1,e)),iT=(e,t)=>e.map((a,i)=>e[(Math.max(t,0)+i)%e.length]),Qp=(...e)=>t=>e.reduce((a,i)=>i(a),t),vu=()=>{},uh=e=>typeof e=="object"&&e!==null,oT=2147483647,gt=e=>e?"":void 0,lT=e=>e?"true":void 0,sT=1,cT=9,uT=11,pa=e=>uh(e)&&e.nodeType===sT&&typeof e.nodeName=="string",w0=e=>uh(e)&&e.nodeType===cT,dT=e=>uh(e)&&e===e.window,WC=e=>pa(e)?e.localName||"":"#document";function fT(e){return["html","body","#document"].includes(WC(e))}var hT=e=>uh(e)&&e.nodeType!==void 0,Qs=e=>hT(e)&&e.nodeType===uT&&"host"in e,gT=e=>pa(e)&&e.localName==="input",pT=e=>!!e?.matches("a[href]"),mT=e=>pa(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function GC(e){if(!e)return!1;const t=e.getRootNode();return qC(t)===e}var bT=/(textarea|select)/;function vT(e){if(e==null||!pa(e))return!1;try{return gT(e)&&e.selectionStart!=null||bT.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Co(e,t){if(!e||!t||!pa(e)||!pa(t))return!1;const a=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(a&&Qs(a)){let i=t;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function li(e){return w0(e)?e:dT(e)?e.document:e?.ownerDocument??document}function xT(e){return li(e).documentElement}function xn(e){return Qs(e)?xn(e.host):w0(e)?e.defaultView??window:pa(e)?e.ownerDocument?.defaultView??window:window}function qC(e){let t=e.activeElement;for(;t?.shadowRoot;){const a=t.shadowRoot.activeElement;if(!a||a===t)break;t=a}return t}function yT(e){if(WC(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qs(e)&&e.host||xT(e);return Qs(t)?t.host:t}function ST(e){let t;try{if(t=e.getRootNode({composed:!0}),w0(t)||Qs(t))return t}catch{}return e.ownerDocument??document}var Jp=new WeakMap;function YC(e){return Jp.has(e)||Jp.set(e,xn(e).getComputedStyle(e)),Jp.get(e)}var CT=new Set(["menu","listbox","dialog","grid","tree","region"]),ET=e=>CT.has(e),wT=e=>e.getAttribute("aria-controls")?.split(" ")||[];function kT(e,t){const a=new Set,i=ST(e),l=c=>{const d=c.querySelectorAll("[aria-controls]");for(const h of d){if(h.getAttribute("aria-expanded")!=="true")continue;const p=wT(h);for(const b of p){if(!b||a.has(b))continue;a.add(b);const v=i.getElementById(b);if(v){const x=v.getAttribute("role"),S=v.getAttribute("aria-modal")==="true";if(x&&ET(x)&&!S&&(v===t||v.contains(t)||l(v)))return!0}}}return!1};return l(e)}var dh=()=>typeof document<"u";function RT(){return navigator.userAgentData?.platform??navigator.platform}function OT(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:a})=>`${t}/${a}`).join(" "):navigator.userAgent}var k0=e=>dh()&&e.test(RT()),XC=e=>dh()&&e.test(OT()),jT=e=>dh()&&e.test(navigator.vendor),cS=()=>dh()&&!!navigator.maxTouchPoints,TT=()=>k0(/^iPhone/i),zT=()=>k0(/^iPad/i)||fh()&&navigator.maxTouchPoints>1,R0=()=>TT()||zT(),_T=()=>fh()||R0(),fh=()=>k0(/^Mac/i),KC=()=>_T()&&jT(/apple/i),AT=()=>XC(/Firefox/i),IT=()=>XC(/Android/i);function NT(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function Vi(e){return NT(e)?.[0]??e.target}function VT(e){return HT(e).isComposing||e.keyCode===229}function LT(e){return e.pointerType===""&&e.isTrusted?!0:IT()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var uS=e=>e.button===0,MT=e=>e.button===2||fh()&&e.ctrlKey&&e.button===0,DT=e=>e.ctrlKey||e.altKey||e.metaKey,PT=e=>"touches"in e&&e.touches.length>0,UT={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},dS={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function $T(e,t={}){const{dir:a="ltr",orientation:i="horizontal"}=t;let l=e.key;return l=UT[l]??l,a==="rtl"&&i==="horizontal"&&l in dS&&(l=dS[l]),l}function HT(e){return e.nativeEvent??e}var BT=new Set(["PageUp","PageDown"]),FT=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]);function WT(e){return e.ctrlKey||e.metaKey?.1:BT.has(e.key)||e.shiftKey&&FT.has(e.key)?10:1}function Wf(e,t="client"){const a=PT(e)?e.touches[0]||e.changedTouches[0]:e;return{x:a[`${t}X`],y:a[`${t}Y`]}}var rn=(e,t,a,i)=>{const l=typeof e=="function"?e():e;return l?.addEventListener(t,a,i),()=>{l?.removeEventListener(t,a,i)}};function ZC(e,t){const{type:a="HTMLInputElement",property:i="value"}=t,l=xn(e)[a].prototype;return Object.getOwnPropertyDescriptor(l,i)??{}}function GT(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function ul(e,t,a="value"){if(!e)return;const i=GT(e);i&&ZC(e,{type:i,property:a}).set?.call(e,t),e.setAttribute(a,t)}function QC(e,t){if(!e)return;ZC(e,{type:"HTMLInputElement",property:"checked"}).set?.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked")}function O0(e,t){const{value:a,bubbles:i=!0}=t;if(!e)return;const l=xn(e);e instanceof l.HTMLInputElement&&(ul(e,`${a}`),e.dispatchEvent(new l.Event("input",{bubbles:i})))}function qT(e,t){const{checked:a,bubbles:i=!0}=t;if(!e)return;const l=xn(e);e instanceof l.HTMLInputElement&&(QC(e,a),e.dispatchEvent(new l.Event("click",{bubbles:i})))}function YT(e){return XT(e)?e.form:e.closest("form")}function XT(e){return e.matches("textarea, input, select, button")}function KT(e,t){if(!e)return;const a=YT(e),i=l=>{l.defaultPrevented||t()};return a?.addEventListener("reset",i,{passive:!0}),()=>a?.removeEventListener("reset",i)}function ZT(e,t){const a=e?.closest("fieldset");if(!a)return;t(a.disabled);const i=xn(a),l=new i.MutationObserver(()=>t(a.disabled));return l.observe(a,{attributes:!0,attributeFilter:["disabled"]}),()=>l.disconnect()}function sc(e,t){if(!e)return;const{onFieldsetDisabledChange:a,onFormReset:i}=t,l=[KT(e,i),ZT(e,a)];return()=>l.forEach(c=>c?.())}var QT=e=>pa(e)&&e.tagName==="IFRAME";function JT(e){const t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}var ez=e=>JT(e)<0;function tz(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;const a=t(e);return(a===!0?e.shadowRoot:a)||null}function nz(e,t,a){const i=[...e],l=[...e],c=new Set,d=new Map;e.forEach((p,b)=>d.set(p,b));let h=0;for(;h{d.set(C,S+O)});for(let C=S+v.length;C{d.set(C,S+O)})}l.push(...v)}}return i}var j0="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type";function T0(e){return!pa(e)||e.closest("[inert]")?!1:e.matches(j0)&&mT(e)}function JC(e,t={}){if(!e)return[];const{includeContainer:a,getShadowRoot:i}=t,l=Array.from(e.querySelectorAll(j0));a&&em(e)&&l.unshift(e);const c=[];for(const d of l)if(em(d)){if(QT(d)&&d.contentDocument){const h=d.contentDocument.body;c.push(...JC(h,{getShadowRoot:i}));continue}c.push(d)}if(i){const d=nz(c,i,em);return!d.length&&a?l:d}return!c.length&&a?l:c}function em(e){return pa(e)&&e.tabIndex>0?!0:T0(e)&&!ez(e)}function z0(e){const{root:t,getInitialEl:a,filter:i,enabled:l=!0}=e;if(!l)return;let c=null;if(c||(c=typeof a=="function"?a():a),c||(c=t?.querySelector("[data-autofocus],[autofocus]")),!c){const d=JC(t);c=i?d.filter(i)[0]:d[0]}return c||t||void 0}var az=class eE{constructor(){Zp(this,"id",null),Zp(this,"fn_cleanup"),Zp(this,"cleanup",()=>{this.cancel()})}static create(){return new eE}request(t){this.cancel(),this.id=globalThis.requestAnimationFrame(()=>{this.id=null,this.fn_cleanup=t?.()})}cancel(){this.id!==null&&(globalThis.cancelAnimationFrame(this.id),this.id=null),this.fn_cleanup?.(),this.fn_cleanup=void 0}isActive(){return this.id!==null}};function Ye(e){const t=az.create();return t.request(e),t.cleanup}function tE(e){const t=new Set;function a(i){const l=globalThis.requestAnimationFrame(i);t.add(()=>globalThis.cancelAnimationFrame(l))}return a(()=>a(e)),function(){t.forEach(l=>l())}}function rz(e,t,a){const i=Ye(()=>{e.removeEventListener(t,l,!0),a()}),l=()=>{i(),a()};return e.addEventListener(t,l,{once:!0,capture:!0}),i}function iz(e,t){if(!e)return;const{attributes:a,callback:i}=t,l=e.ownerDocument.defaultView||window,c=new l.MutationObserver(d=>{for(const h of d)h.type==="attributes"&&h.attributeName&&a.includes(h.attributeName)&&i(h)});return c.observe(e,{attributes:!0,attributeFilter:a}),()=>c.disconnect()}function Uu(e,t){const{defer:a}=t,i=a?Ye:c=>c(),l=[];return l.push(i(()=>{const c=typeof e=="function"?e():e;l.push(iz(c,t))})),()=>{l.forEach(c=>c?.())}}function nE(e){const t=()=>{const a=xn(e);e.dispatchEvent(new a.MouseEvent("click"))};AT()?rz(e,"keyup",t):queueMicrotask(t)}function Gf(e){const t=yT(e);return fT(t)?li(t).body:pa(t)&&_0(t)?t:Gf(t)}function aE(e,t=[]){const a=Gf(e),i=a===e.ownerDocument.body,l=xn(a);return i?t.concat(l,l.visualViewport||[],_0(a)?a:[]):t.concat(a,aE(a,[]))}var oz=/auto|scroll|overlay|hidden|clip/,lz=new Set(["inline","contents"]);function _0(e){const t=xn(e),{overflow:a,overflowX:i,overflowY:l,display:c}=t.getComputedStyle(e);return oz.test(a+l+i)&&!lz.has(c)}function sz(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Iu(e,t){const{rootEl:a,...i}=t||{};!e||!a||!_0(a)||!sz(a)||e.scrollIntoView(i)}function A0(e,t){const{left:a,top:i,width:l,height:c}=t.getBoundingClientRect(),d={x:e.x-a,y:e.y-i},h={x:sS(d.x/l),y:sS(d.y/c)};function p(b={}){const{dir:v="ltr",orientation:x="horizontal",inverted:S}=b,C=typeof S=="object"?S.x:S,O=typeof S=="object"?S.y:S;return x==="horizontal"?v==="rtl"||C?1-h.x:h.x:O?1-h.y:h.y}return{offset:d,percent:h,getPercentValue:p}}function cz(e,t){const a=e.body,i="pointerLockElement"in e||"mozPointerLockElement"in e,l=()=>!!e.pointerLockElement;function c(){}function d(p){l(),console.error("PointerLock error occurred:",p),e.exitPointerLock()}if(!i)return;try{a.requestPointerLock()}catch{}const h=[rn(e,"pointerlockchange",c,!1),rn(e,"pointerlockerror",d,!1)];return()=>{h.forEach(p=>p()),e.exitPointerLock()}}var $s="default",Mm="",_f=new WeakMap;function uz(e={}){const{target:t,doc:a}=e,i=a??document,l=i.documentElement;return R0()?($s==="default"&&(Mm=l.style.webkitUserSelect,l.style.webkitUserSelect="none"),$s="disabled"):t&&(_f.set(t,t.style.userSelect),t.style.userSelect="none"),()=>dz({target:t,doc:i})}function dz(e={}){const{target:t,doc:a}=e,l=(a??document).documentElement;if(R0()){if($s!=="disabled")return;$s="restoring",setTimeout(()=>{tE(()=>{$s==="restoring"&&(l.style.webkitUserSelect==="none"&&(l.style.webkitUserSelect=Mm||""),Mm="",$s="default")})},300)}else if(t&&_f.has(t)){const c=_f.get(t);t.style.userSelect==="none"&&(t.style.userSelect=c??""),t.getAttribute("style")===""&&t.removeAttribute("style"),_f.delete(t)}}function rE(e={}){const{defer:t,target:a,...i}=e,l=t?Ye:d=>d(),c=[];return c.push(l(()=>{const d=typeof a=="function"?a():a;c.push(uz({...i,target:d}))})),()=>{c.forEach(d=>d?.())}}function iE(e,t){const{onPointerMove:a,onPointerUp:i}=t,l=h=>{const p=Wf(h),b=Math.sqrt(p.x**2+p.y**2),v=h.pointerType==="touch"?10:5;if(!(b{const p=Wf(h);i({point:p,event:h})},d=[rn(e,"pointermove",l,!1),rn(e,"pointerup",c,!1),rn(e,"pointercancel",c,!1),rn(e,"contextmenu",c,!1),rE({doc:e})];return()=>{d.forEach(h=>h())}}function fz(e){const{pointerNode:t,keyboardNode:a=t,onPress:i,onPressStart:l,onPressEnd:c,isValidKey:d=_=>_.key==="Enter"}=e;if(!t)return vu;const h=xn(t);let p=vu,b=vu,v=vu;const x=_=>({point:Wf(_),event:_});function S(_){l?.(x(_))}function C(_){c?.(x(_))}const w=rn(t,"pointerdown",_=>{b();const M=rn(h,"pointerup",V=>{const P=Vi(V);Co(t,P)?i?.(x(V)):c?.(x(V))},{passive:!i,once:!0}),R=rn(h,"pointercancel",C,{passive:!c,once:!0});b=Qp(M,R),GC(a)&&_.pointerType==="mouse"&&_.preventDefault(),S(_)},{passive:!l}),T=rn(a,"focus",A);p=Qp(w,T);function A(){const _=V=>{if(!d(V))return;const P=B=>{if(!d(B))return;const W=new h.PointerEvent("pointerup"),Y=x(W);i?.(Y),c?.(Y)};b(),b=rn(a,"keyup",P);const F=new h.PointerEvent("pointerdown");S(F)},I=()=>{const V=new h.PointerEvent("pointercancel");C(V)},M=rn(a,"keydown",_),R=rn(a,"blur",I);v=Qp(M,R)}return()=>{p(),b(),v()}}function Ql(e,t){return Array.from(e?.querySelectorAll(t)??[])}function hz(e,t){return e?.querySelector(t)??null}var I0=e=>e.id;function gz(e,t,a=I0){return e.find(i=>a(i)===t)}function hh(e,t,a=I0){const i=gz(e,t,a);return i?e.indexOf(i):-1}function oE(e,t,a=!0){let i=hh(e,t);return i=a?(i+1)%e.length:Math.min(i+1,e.length-1),e[i]}function lE(e,t,a=!0){let i=hh(e,t);return i===-1?a?e[e.length-1]:null:(i=a?(i-1+e.length)%e.length:Math.max(0,i-1),e[i])}function pz(e){const t=new WeakMap;let a;const i=new WeakMap,l=h=>a||(a=new h.ResizeObserver(p=>{for(const b of p){i.set(b.target,b);const v=t.get(b.target);if(v)for(const x of v)x(b)}}),a);return{observe:(h,p)=>{let b=t.get(h)||new Set;b.add(p),t.set(h,b);const v=xn(h);return l(v).observe(h,e),()=>{const x=t.get(h);x&&(x.delete(p),x.size===0&&(t.delete(h),l(v).unobserve(h)))}},unobserve:h=>{t.delete(h),a?.unobserve(h)}}}var mz=pz({box:"border-box"}),bz=e=>e.split("").map(t=>{const a=t.charCodeAt(0);return a>0&&a<128?t:a>=128&&a<=255?`/x${a.toString(16)}`.replace("/","\\"):""}).join("").trim(),vz=e=>bz(e.dataset?.valuetext??e.textContent??""),xz=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function yz(e,t,a,i=I0){const l=a?hh(e,a,i):-1;let c=a?iT(e,l):e;return t.length===1&&(c=c.filter(h=>i(h)!==a)),c.find(h=>xz(vz(h),t))}function Sz(e,t){if(!e)return vu;const a=Object.keys(t).reduce((i,l)=>(i[l]=e.style.getPropertyValue(l),i),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,a),e.style.length===0&&e.removeAttribute("style")}}function Cz(e,t){const{state:a,activeId:i,key:l,timeout:c=350,itemToId:d}=t,h=a.keysSoFar+l,b=h.length>1&&Array.from(h).every(O=>O===h[0])?h[0]:h;let v=e.slice();const x=yz(v,b,i,d);function S(){clearTimeout(a.timer),a.timer=-1}function C(O){a.keysSoFar=O,S(),O!==""&&(a.timer=+setTimeout(()=>{C(""),S()},c))}return C(h),x}var Js=Object.assign(Cz,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:Ez});function Ez(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var wz={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"};function kz(e,t,a){const{signal:i}=t;return[new Promise((d,h)=>{const p=setTimeout(()=>{h(new Error(`Timeout of ${a}ms exceeded`))},a);i.addEventListener("abort",()=>{clearTimeout(p),h(new Error("Promise aborted"))}),e.then(b=>{i.aborted||(clearTimeout(p),d(b))}).catch(b=>{i.aborted||(clearTimeout(p),h(b))})}),()=>t.abort()]}function Rz(e,t){const{timeout:a,rootNode:i}=t,l=xn(i),c=li(i),d=new l.AbortController;return kz(new Promise(h=>{const p=e();if(p){h(p);return}const b=new l.MutationObserver(()=>{const v=e();v&&v.isConnected&&(b.disconnect(),h(v))});b.observe(c.body,{childList:!0,subtree:!0})}),d,a)}var Oz=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),jz=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,fS=e=>{const t={};let a;for(;a=jz.exec(e);)t[a[1]]=a[2];return t},Tz=(e,t)=>{if(zf(e)){if(zf(t))return`${e};${t}`;e=fS(e)}else zf(t)&&(t=fS(t));return Object.assign({},e??{},t??{})};function On(...e){let t={};for(let a of e){if(!a)continue;for(let l in t){if(l.startsWith("on")&&typeof t[l]=="function"&&typeof a[l]=="function"){t[l]=zu(a[l],t[l]);continue}if(l==="className"||l==="class"){t[l]=Oz(t[l],a[l]);continue}if(l==="style"){t[l]=Tz(t[l],a[l]);continue}t[l]=a[l]!==void 0?a[l]:t[l]}for(let l in a)t[l]===void 0&&(t[l]=a[l]);const i=Object.getOwnPropertySymbols(a);for(let l of i)t[l]=a[l]}return t}function Dm(e,t,a){let i=[],l;return c=>{const d=e(c);return(d.length!==i.length||d.some((p,b)=>!ka(i[b],p)))&&(i=d,l=t(d,c)),l}}function Di(){return{and:(...e)=>function(a){return e.every(i=>a.guard(i))},or:(...e)=>function(a){return e.some(i=>a.guard(i))},not:e=>function(a){return!a.guard(e)}}}function N0(){return{guards:Di(),createMachine:e=>e,choose:e=>function({choose:a}){return a(e)?.actions}}}var Ds=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Ds||{}),tm="__init__";function zz(e){const t=()=>e.getRootNode?.()??document,a=()=>li(t());return{...e,getRootNode:t,getDoc:a,getWin:()=>a().defaultView??window,getActiveElement:()=>qC(t()),isActiveElement:GC,getById:d=>t().getElementById(d)}}function _z(...e){return t=>{const a=[];for(const i of e)if(typeof i=="function"){const l=i(t);typeof l=="function"&&a.push(l)}else i&&(i.current=t);if(a.length)return()=>{for(const i of a)i()}}}function Az(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}const nm=e=>{const t=m.memo(m.forwardRef((a,i)=>{const{asChild:l,children:c,...d}=a;if(!l)return m.createElement(e,{...d,ref:i},c);if(!m.isValidElement(c))return null;const h=m.Children.only(c),p=Az(h);return m.cloneElement(h,{...On(d,h.props),ref:i?_z(i,p):p})}));return t.displayName=e.displayName||e.name,t},Iz=()=>{const e=new Map;return new Proxy(nm,{apply(t,a,i){return nm(i[0])},get(t,a){const i=a;return e.has(i)||e.set(i,nm(i)),e.get(i)}})},Nn=Iz(),[WU,sE]=gl({name:"LocaleContext",hookName:"useLocaleContext",providerName:"",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),{withContext:Nz}=Oo({key:"heading"}),Ys=Nz("h2");Ys.displayName="Heading";const as=()=>(e,t)=>t.reduce((a,i)=>{const[l,c]=a,d=i;return c[d]!==void 0&&(l[d]=c[d]),delete c[d],[l,c]},[{},{...e}]);function Vz(e){return new Proxy({},{get(t,a){return a==="style"?i=>e({style:i}).style:e}})}var Me=()=>e=>Array.from(new Set(e)),V0=bC(),cE=typeof globalThis.document<"u"?m.useLayoutEffect:m.useEffect;function qf(e){const t=e().value??e().defaultValue,a=e().isEqual??Object.is,[i]=m.useState(t),[l,c]=m.useState(i),d=e().value!==void 0,h=m.useRef(l);h.current=d?e().value:l;const p=m.useRef(h.current);cE(()=>{p.current=h.current},[l,e().value]);const b=x=>{const S=p.current,C=ll(x)?x(S):x;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:C,prev:S}),d||c(C),a(C,S)||e().onChange?.(C,S)};function v(){return d?e().value:l}return{initial:i,ref:h,get:v,set(x){(e().sync?V0.flushSync:Lj)(()=>b(x))},invoke(x,S){e().onChange?.(x,S)},hash(x){return e().hash?.(x)??String(x)}}}qf.cleanup=e=>{m.useEffect(()=>e,[])};qf.ref=e=>{const t=m.useRef(e);return{get:()=>t.current,set:a=>{t.current=a}}};function Lz(e){const t=m.useRef(e);return{get(a){return t.current[a]},set(a,i){t.current[a]=i}}}var Mz=(e,t)=>{const a=m.useRef(!1),i=m.useRef(!1);m.useEffect(()=>{if(a.current&&i.current)return t();i.current=!0},[...(e??[]).map(l=>typeof l=="function"?l():l)]),m.useEffect(()=>(a.current=!0,()=>{a.current=!1}),[])};function uE(e,t={}){const a=m.useMemo(()=>{const{id:Y,ids:U,getRootNode:be}=t;return zz({id:Y,ids:U,getRootNode:be})},[t]),i=(...Y)=>{e.debug&&console.log(...Y)},l=e.props?.({props:E0(t),scope:a})??t,c=Dz(l),d=e.context?.({prop:c,bindable:qf,scope:a,flush:hS,getContext(){return p},getComputed(){return R},getRefs(){return w},getEvent(){return C()}}),h=dE(d),p={get(Y){return h.current?.[Y].ref.current},set(Y,U){h.current?.[Y].set(U)},initial(Y){return h.current?.[Y].initial},hash(Y){const U=h.current?.[Y].get();return h.current?.[Y].hash(U)}},b=m.useRef(new Map),v=m.useRef(null),x=m.useRef(null),S=m.useRef({type:""}),C=()=>({...S.current,current(){return S.current},previous(){return x.current}}),O=()=>({...V,matches(...Y){return Y.includes(V.ref.current)},hasTag(Y){return!!e.states[V.ref.current]?.tags?.includes(Y)}}),w=Lz(e.refs?.({prop:c,context:p})??{}),T=()=>({state:O(),context:p,event:C(),prop:c,send:W,action:A,guard:_,track:Mz,refs:w,computed:R,flush:hS,scope:a,choose:M}),A=Y=>{const U=ll(Y)?Y(T()):Y;if(!U)return;const be=U.map(de=>{const ve=e.implementations?.actions?.[de];return ve||Au(`[zag-js] No implementation found for action "${JSON.stringify(de)}"`),ve});for(const de of be)de?.(T())},_=Y=>ll(Y)?Y(T()):e.implementations?.guards?.[Y](T()),I=Y=>{const U=ll(Y)?Y(T()):Y;if(!U)return;const be=U.map(ve=>{const N=e.implementations?.effects?.[ve];return N||Au(`[zag-js] No implementation found for effect "${JSON.stringify(ve)}"`),N}),de=[];for(const ve of be){const N=ve?.(T());N&&de.push(N)}return()=>de.forEach(ve=>ve?.())},M=Y=>Tf(Y).find(U=>{let be=!U.guard;return zf(U.guard)?be=!!_(U.guard):ll(U.guard)&&(be=U.guard(T())),be}),R=Y=>{BC(e.computed,()=>"[zag-js] No computed object found on machine");const U=e.computed[Y];return U({context:p,event:C(),prop:c,refs:w,scope:a,computed:R})},V=qf(()=>({defaultValue:e.initialState({prop:c}),onChange(Y,U){U&&(b.current.get(U)?.(),b.current.delete(U)),U&&A(e.states[U]?.exit),A(v.current?.actions);const be=I(e.states[Y]?.effects);if(be&&b.current.set(Y,be),U===tm){A(e.entry);const de=I(e.effects);de&&b.current.set(tm,de)}A(e.states[Y]?.entry)}})),P=m.useRef(void 0),F=m.useRef(Ds.NotStarted);cE(()=>{queueMicrotask(()=>{const be=F.current===Ds.Started;F.current=Ds.Started,i(be?"rehydrating...":"initializing...");const de=P.current??V.initial;V.invoke(de,be?V.get():tm)});const Y=b.current,U=V.ref.current;return()=>{i("unmounting..."),P.current=U,F.current=Ds.Stopped,Y.forEach(be=>be?.()),b.current=new Map,v.current=null,queueMicrotask(()=>{A(e.exit)})}},[]);const B=()=>"ref"in V?V.ref.current:V.get(),W=Y=>{queueMicrotask(()=>{if(F.current!==Ds.Started)return;x.current=S.current,S.current=Y;let U=B();const be=e.states[U].on?.[Y.type]??e.on?.[Y.type],de=M(be);if(!de)return;v.current=de;const ve=de.target??U;i("transition",Y.type,de.target||U,`(${de.actions})`);const N=ve!==U;N?V0.flushSync(()=>V.set(ve)):de.reenter&&!N?V.invoke(U,U):A(de.actions??[])})};return e.watch?.(T()),{state:O(),send:W,context:p,prop:c,scope:a,refs:w,computed:R,event:C(),getStatus:()=>F.current}}function dE(e){const t=m.useRef(e);return t.current=e,t}function Dz(e){const t=dE(e);return function(i){return t.current[i]}}function hS(e){queueMicrotask(()=>{V0.flushSync(()=>e())})}var fE=Vz(e=>e);function Pz(e,t={}){const{sync:a=!1}=t,i=Uz(e);return m.useCallback((...l)=>a?queueMicrotask(()=>i.current?.(...l)):i.current?.(...l),[a,i])}function Uz(e){const t=m.useRef(e);return t.current=e,t}const xu=Kt("span");xu.displayName="Span";const{withContext:$z}=Oo({key:"text"}),z=$z("p");z.displayName="Text";var He=(e,t=[])=>({parts:(...a)=>{if(Hz(t))return He(e,a);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...a)=>He(e,[...t,...a]),omit:(...a)=>He(e,t.filter(i=>!a.includes(i))),rename:a=>He(a,t),keys:()=>t,build:()=>[...new Set(t)].reduce((a,i)=>Object.assign(a,{[i]:{selector:[`&[data-scope="${Ns(e)}"][data-part="${Ns(i)}"]`,`& [data-scope="${Ns(e)}"][data-part="${Ns(i)}"]`].join(", "),attrs:{"data-scope":Ns(e),"data-part":Ns(i)}}}),{})}),Ns=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Hz=e=>e.length===0,hE=He("collapsible").parts("root","trigger","content","indicator");hE.build();Me()(["dir","disabled","getRootNode","id","ids","collapsedHeight","collapsedWidth","onExitComplete","onOpenChange","defaultOpen","open"]);var Bz=Object.defineProperty,Fz=(e,t,a)=>t in e?Bz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,L0=(e,t,a)=>Fz(e,t+"",a),Wz=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let a in e)if(e[a]!==t[a])return!1;return!0},M0=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){const a=t??this.getChannelValue(e),{minValue:i,maxValue:l}=this.getChannelRange(e);return ch(a,i,l)}getChannelPercentValue(e,t){const{minValue:a,maxValue:i,step:l}=this.getChannelRange(e),c=C0(t,a,i,l);return _u(c,a,i,l)}withChannelValue(e,t){const{minValue:a,maxValue:i}=this.getChannelRange(e);if(e in this){let l=this.clone();return l[e]=Bn(t,a,i),l}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:a}=e,i=t||this.getChannels().find(d=>d!==a),l=a||this.getChannels().find(d=>d!==i),c=this.getChannels().find(d=>d!==i&&d!==l);return{xChannel:i,yChannel:l,zChannel:c}}incrementChannel(e,t){const{minValue:a,maxValue:i,step:l}=this.getChannelRange(e),c=_u(Bn(this.getChannelValue(e)+t,a,i),a,i,l);return this.withChannelValue(e,c)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return Wz(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},Gz=/^#[\da-f]+$/i,qz=/^rgba?\((.*)\)$/,Yz=/[^#]/gi,gE=class Af extends M0{constructor(t,a,i,l){super(),this.red=t,this.green=a,this.blue=i,this.alpha=l}static parse(t){let a=[];if(Gz.test(t)&&[4,5,7,9].includes(t.length)){const l=(t.length<6?t.replace(Yz,"$&$&"):t).slice(1).split("");for(;l.length>0;)a.push(parseInt(l.splice(0,2).join(""),16));a[3]=a[3]!==void 0?a[3]/255:void 0}const i=t.match(qz);return i?.[1]&&(a=i[1].split(",").map(l=>Number(l.trim())).map((l,c)=>Bn(l,0,c<3?255:1))),a.length<3?void 0:new Af(a[0],a[1],a[2],a[3]??1)}toString(t){switch(t){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+t)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const t=this.red/255,a=this.green/255,i=this.blue/255,l=Math.min(t,a,i),c=Math.max(t,a,i),d=c-l,h=c===0?0:d/c;let p=0;if(d!==0){switch(c){case t:p=(a-i)/d+(aNumber(h.trim().replace("%","")));return new If(DC(i,360),Bn(l,0,100),Bn(c,0,100),Bn(d??1,0,1))}}toString(t){switch(t){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${Xt(this.saturation,2)}%, ${Xt(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${Xt(this.saturation,2)}%, ${Xt(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+t)}}toHSB(){let t=this.saturation/100,a=this.lightness/100,i=a+t*Math.min(a,1-a);return t=i===0?0:2*(1-a/i),new U0(Xt(this.hue,2),Xt(t*100,2),Xt(i*100,2),Xt(this.alpha,2))}toRGB(){let t=this.hue,a=this.saturation/100,i=this.lightness/100,l=a*Math.min(i,1-i),c=(d,h=(d+t/30)%12)=>i-l*Math.max(Math.min(h-3,9-h,1),-1);return new D0(Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255),Xt(this.alpha,2))}clone(){return new If(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,a){let i=this.getChannelFormatOptions(t),l=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(l/=100),new Intl.NumberFormat(a,i).format(l)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return If.colorChannels}};L0(pE,"colorChannels",["hue","saturation","lightness"]);var P0=pE,Kz=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,mE=class Nf extends M0{constructor(t,a,i,l){super(),this.hue=t,this.saturation=a,this.brightness=i,this.alpha=l}static parse(t){let a;if(a=t.match(Kz)){const[i,l,c,d]=(a[1]??a[2]).split(",").map(h=>Number(h.trim().replace("%","")));return new Nf(DC(i,360),Bn(l,0,100),Bn(c,0,100),Bn(d??1,0,1))}}toString(t){switch(t){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${Xt(this.saturation,2)}%, ${Xt(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${Xt(this.saturation,2)}%, ${Xt(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+t)}}toHSL(){let t=this.saturation/100,a=this.brightness/100,i=a*(1-t/2);return t=i===0||i===1?0:(a-i)/Math.min(i,1-i),new P0(Xt(this.hue,2),Xt(t*100,2),Xt(i*100,2),Xt(this.alpha,2))}toRGB(){let t=this.hue,a=this.saturation/100,i=this.brightness/100,l=(c,d=(c+t/60)%6)=>i-a*i*Math.max(Math.min(d,4-d,1),0);return new D0(Math.round(l(5)*255),Math.round(l(3)*255),Math.round(l(1)*255),Xt(this.alpha,2))}clone(){return new Nf(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,a){let i=this.getChannelFormatOptions(t),l=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(l/=100),new Intl.NumberFormat(a,i).format(l)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return Nf.colorChannels}};L0(mE,"colorChannels",["hue","saturation","brightness"]);var U0=mE,Zz="aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32",Qz=e=>{const t=new Map,a=e.split(",");for(let i=0;i{if(gS.has(e))return Yf(gS.get(e));const t=D0.parse(e)||U0.parse(e)||P0.parse(e);if(!t){const a=new Error("Invalid color value: "+e);throw Error.captureStackTrace?.(a,Yf),a}return t};const Jz=["top","right","bottom","left"],dl=Math.min,ur=Math.max,Xf=Math.round,uf=Math.floor,Ni=e=>({x:e,y:e}),e_={left:"right",right:"left",bottom:"top",top:"bottom"},t_={start:"end",end:"start"};function Pm(e,t,a){return ur(e,dl(t,a))}function wo(e,t){return typeof e=="function"?e(t):e}function ko(e){return e.split("-")[0]}function cc(e){return e.split("-")[1]}function $0(e){return e==="x"?"y":"x"}function H0(e){return e==="y"?"height":"width"}const n_=new Set(["top","bottom"]);function Ai(e){return n_.has(ko(e))?"y":"x"}function B0(e){return $0(Ai(e))}function a_(e,t,a){a===void 0&&(a=!1);const i=cc(e),l=B0(e),c=H0(l);let d=l==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(d=Kf(d)),[d,Kf(d)]}function r_(e){const t=Kf(e);return[Um(e),t,Um(t)]}function Um(e){return e.replace(/start|end/g,t=>t_[t])}const pS=["left","right"],mS=["right","left"],i_=["top","bottom"],o_=["bottom","top"];function l_(e,t,a){switch(e){case"top":case"bottom":return a?t?mS:pS:t?pS:mS;case"left":case"right":return t?i_:o_;default:return[]}}function s_(e,t,a,i){const l=cc(e);let c=l_(ko(e),a==="start",i);return l&&(c=c.map(d=>d+"-"+l),t&&(c=c.concat(c.map(Um)))),c}function Kf(e){return e.replace(/left|right|bottom|top/g,t=>e_[t])}function c_(e){return{top:0,right:0,bottom:0,left:0,...e}}function bE(e){return typeof e!="number"?c_(e):{top:e,right:e,bottom:e,left:e}}function Zf(e){const{x:t,y:a,width:i,height:l}=e;return{width:i,height:l,top:a,left:t,right:t+i,bottom:a+l,x:t,y:a}}function bS(e,t,a){let{reference:i,floating:l}=e;const c=Ai(t),d=B0(t),h=H0(d),p=ko(t),b=c==="y",v=i.x+i.width/2-l.width/2,x=i.y+i.height/2-l.height/2,S=i[h]/2-l[h]/2;let C;switch(p){case"top":C={x:v,y:i.y-l.height};break;case"bottom":C={x:v,y:i.y+i.height};break;case"right":C={x:i.x+i.width,y:x};break;case"left":C={x:i.x-l.width,y:x};break;default:C={x:i.x,y:i.y}}switch(cc(t)){case"start":C[d]-=S*(a&&b?-1:1);break;case"end":C[d]+=S*(a&&b?-1:1);break}return C}const u_=async(e,t,a)=>{const{placement:i="bottom",strategy:l="absolute",middleware:c=[],platform:d}=a,h=c.filter(Boolean),p=await(d.isRTL==null?void 0:d.isRTL(t));let b=await d.getElementRects({reference:e,floating:t,strategy:l}),{x:v,y:x}=bS(b,i,p),S=i,C={},O=0;for(let w=0;w({name:"arrow",options:e,async fn(t){const{x:a,y:i,placement:l,rects:c,platform:d,elements:h,middlewareData:p}=t,{element:b,padding:v=0}=wo(e,t)||{};if(b==null)return{};const x=bE(v),S={x:a,y:i},C=B0(l),O=H0(C),w=await d.getDimensions(b),T=C==="y",A=T?"top":"left",_=T?"bottom":"right",I=T?"clientHeight":"clientWidth",M=c.reference[O]+c.reference[C]-S[C]-c.floating[O],R=S[C]-c.reference[C],V=await(d.getOffsetParent==null?void 0:d.getOffsetParent(b));let P=V?V[I]:0;(!P||!await(d.isElement==null?void 0:d.isElement(V)))&&(P=h.floating[I]||c.floating[O]);const F=M/2-R/2,B=P/2-w[O]/2-1,W=dl(x[A],B),Y=dl(x[_],B),U=W,be=P-w[O]-Y,de=P/2-w[O]/2+F,ve=Pm(U,de,be),N=!p.arrow&&cc(l)!=null&&de!==ve&&c.reference[O]/2-(dede<=0)){var Y,U;const de=(((Y=c.flip)==null?void 0:Y.index)||0)+1,ve=P[de];if(ve&&(!(x==="alignment"?_!==Ai(ve):!1)||W.every(oe=>Ai(oe.placement)===_?oe.overflows[0]>0:!0)))return{data:{index:de,overflows:W},reset:{placement:ve}};let N=(U=W.filter(te=>te.overflows[0]<=0).sort((te,oe)=>te.overflows[1]-oe.overflows[1])[0])==null?void 0:U.placement;if(!N)switch(C){case"bestFit":{var be;const te=(be=W.filter(oe=>{if(V){const le=Ai(oe.placement);return le===_||le==="y"}return!0}).map(oe=>[oe.placement,oe.overflows.filter(le=>le>0).reduce((le,Ee)=>le+Ee,0)]).sort((oe,le)=>oe[1]-le[1])[0])==null?void 0:be[0];te&&(N=te);break}case"initialPlacement":N=h;break}if(l!==N)return{reset:{placement:N}}}return{}}}};function vS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xS(e){return Jz.some(t=>e[t]>=0)}const h_=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:a}=t,{strategy:i="referenceHidden",...l}=wo(e,t);switch(i){case"referenceHidden":{const c=await Nu(t,{...l,elementContext:"reference"}),d=vS(c,a.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:xS(d)}}}case"escaped":{const c=await Nu(t,{...l,altBoundary:!0}),d=vS(c,a.floating);return{data:{escapedOffsets:d,escaped:xS(d)}}}default:return{}}}}},vE=new Set(["left","top"]);async function g_(e,t){const{placement:a,platform:i,elements:l}=e,c=await(i.isRTL==null?void 0:i.isRTL(l.floating)),d=ko(a),h=cc(a),p=Ai(a)==="y",b=vE.has(d)?-1:1,v=c&&p?-1:1,x=wo(t,e);let{mainAxis:S,crossAxis:C,alignmentAxis:O}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return h&&typeof O=="number"&&(C=h==="end"?O*-1:O),p?{x:C*v,y:S*b}:{x:S*b,y:C*v}}const p_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,i;const{x:l,y:c,placement:d,middlewareData:h}=t,p=await g_(t,e);return d===((a=h.offset)==null?void 0:a.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:l+p.x,y:c+p.y,data:{...p,placement:d}}}}},m_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:i,placement:l}=t,{mainAxis:c=!0,crossAxis:d=!1,limiter:h={fn:T=>{let{x:A,y:_}=T;return{x:A,y:_}}},...p}=wo(e,t),b={x:a,y:i},v=await Nu(t,p),x=Ai(ko(l)),S=$0(x);let C=b[S],O=b[x];if(c){const T=S==="y"?"top":"left",A=S==="y"?"bottom":"right",_=C+v[T],I=C-v[A];C=Pm(_,C,I)}if(d){const T=x==="y"?"top":"left",A=x==="y"?"bottom":"right",_=O+v[T],I=O-v[A];O=Pm(_,O,I)}const w=h.fn({...t,[S]:C,[x]:O});return{...w,data:{x:w.x-a,y:w.y-i,enabled:{[S]:c,[x]:d}}}}}},b_=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:a,y:i,placement:l,rects:c,middlewareData:d}=t,{offset:h=0,mainAxis:p=!0,crossAxis:b=!0}=wo(e,t),v={x:a,y:i},x=Ai(l),S=$0(x);let C=v[S],O=v[x];const w=wo(h,t),T=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(p){const I=S==="y"?"height":"width",M=c.reference[S]-c.floating[I]+T.mainAxis,R=c.reference[S]+c.reference[I]-T.mainAxis;CR&&(C=R)}if(b){var A,_;const I=S==="y"?"width":"height",M=vE.has(ko(l)),R=c.reference[x]-c.floating[I]+(M&&((A=d.offset)==null?void 0:A[x])||0)+(M?0:T.crossAxis),V=c.reference[x]+c.reference[I]+(M?0:((_=d.offset)==null?void 0:_[x])||0)-(M?T.crossAxis:0);OV&&(O=V)}return{[S]:C,[x]:O}}}},v_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a,i;const{placement:l,rects:c,platform:d,elements:h}=t,{apply:p=()=>{},...b}=wo(e,t),v=await Nu(t,b),x=ko(l),S=cc(l),C=Ai(l)==="y",{width:O,height:w}=c.floating;let T,A;x==="top"||x==="bottom"?(T=x,A=S===(await(d.isRTL==null?void 0:d.isRTL(h.floating))?"start":"end")?"left":"right"):(A=x,T=S==="end"?"top":"bottom");const _=w-v.top-v.bottom,I=O-v.left-v.right,M=dl(w-v[T],_),R=dl(O-v[A],I),V=!t.middlewareData.shift;let P=M,F=R;if((a=t.middlewareData.shift)!=null&&a.enabled.x&&(F=I),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(P=_),V&&!S){const W=ur(v.left,0),Y=ur(v.right,0),U=ur(v.top,0),be=ur(v.bottom,0);C?F=O-2*(W!==0||Y!==0?W+Y:ur(v.left,v.right)):P=w-2*(U!==0||be!==0?U+be:ur(v.top,v.bottom))}await p({...t,availableWidth:F,availableHeight:P});const B=await d.getDimensions(h.floating);return O!==B.width||w!==B.height?{reset:{rects:!0}}:{}}}};function gh(){return typeof window<"u"}function uc(e){return xE(e)?(e.nodeName||"").toLowerCase():"#document"}function gr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pi(e){var t;return(t=(xE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xE(e){return gh()?e instanceof Node||e instanceof gr(e).Node:!1}function ri(e){return gh()?e instanceof Element||e instanceof gr(e).Element:!1}function Li(e){return gh()?e instanceof HTMLElement||e instanceof gr(e).HTMLElement:!1}function yS(e){return!gh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof gr(e).ShadowRoot}const x_=new Set(["inline","contents"]);function $u(e){const{overflow:t,overflowX:a,overflowY:i,display:l}=ii(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+a)&&!x_.has(l)}const y_=new Set(["table","td","th"]);function S_(e){return y_.has(uc(e))}const C_=[":popover-open",":modal"];function ph(e){return C_.some(t=>{try{return e.matches(t)}catch{return!1}})}const E_=["transform","translate","scale","rotate","perspective"],w_=["transform","translate","scale","rotate","perspective","filter"],k_=["paint","layout","strict","content"];function F0(e){const t=W0(),a=ri(e)?ii(e):e;return E_.some(i=>a[i]?a[i]!=="none":!1)||(a.containerType?a.containerType!=="normal":!1)||!t&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!t&&(a.filter?a.filter!=="none":!1)||w_.some(i=>(a.willChange||"").includes(i))||k_.some(i=>(a.contain||"").includes(i))}function R_(e){let t=fl(e);for(;Li(t)&&!ec(t);){if(F0(t))return t;if(ph(t))return null;t=fl(t)}return null}function W0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const O_=new Set(["html","body","#document"]);function ec(e){return O_.has(uc(e))}function ii(e){return gr(e).getComputedStyle(e)}function mh(e){return ri(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fl(e){if(uc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yS(e)&&e.host||Pi(e);return yS(t)?t.host:t}function yE(e){const t=fl(e);return ec(t)?e.ownerDocument?e.ownerDocument.body:e.body:Li(t)&&$u(t)?t:yE(t)}function Vu(e,t,a){var i;t===void 0&&(t=[]),a===void 0&&(a=!0);const l=yE(e),c=l===((i=e.ownerDocument)==null?void 0:i.body),d=gr(l);if(c){const h=$m(d);return t.concat(d,d.visualViewport||[],$u(l)?l:[],h&&a?Vu(h):[])}return t.concat(l,Vu(l,[],a))}function $m(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function SE(e){const t=ii(e);let a=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const l=Li(e),c=l?e.offsetWidth:a,d=l?e.offsetHeight:i,h=Xf(a)!==c||Xf(i)!==d;return h&&(a=c,i=d),{width:a,height:i,$:h}}function G0(e){return ri(e)?e:e.contextElement}function Xs(e){const t=G0(e);if(!Li(t))return Ni(1);const a=t.getBoundingClientRect(),{width:i,height:l,$:c}=SE(t);let d=(c?Xf(a.width):a.width)/i,h=(c?Xf(a.height):a.height)/l;return(!d||!Number.isFinite(d))&&(d=1),(!h||!Number.isFinite(h))&&(h=1),{x:d,y:h}}const j_=Ni(0);function CE(e){const t=gr(e);return!W0()||!t.visualViewport?j_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function T_(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==gr(e)?!1:t}function Jl(e,t,a,i){t===void 0&&(t=!1),a===void 0&&(a=!1);const l=e.getBoundingClientRect(),c=G0(e);let d=Ni(1);t&&(i?ri(i)&&(d=Xs(i)):d=Xs(e));const h=T_(c,a,i)?CE(c):Ni(0);let p=(l.left+h.x)/d.x,b=(l.top+h.y)/d.y,v=l.width/d.x,x=l.height/d.y;if(c){const S=gr(c),C=i&&ri(i)?gr(i):i;let O=S,w=$m(O);for(;w&&i&&C!==O;){const T=Xs(w),A=w.getBoundingClientRect(),_=ii(w),I=A.left+(w.clientLeft+parseFloat(_.paddingLeft))*T.x,M=A.top+(w.clientTop+parseFloat(_.paddingTop))*T.y;p*=T.x,b*=T.y,v*=T.x,x*=T.y,p+=I,b+=M,O=gr(w),w=$m(O)}}return Zf({width:v,height:x,x:p,y:b})}function bh(e,t){const a=mh(e).scrollLeft;return t?t.left+a:Jl(Pi(e)).left+a}function EE(e,t){const a=e.getBoundingClientRect(),i=a.left+t.scrollLeft-bh(e,a),l=a.top+t.scrollTop;return{x:i,y:l}}function z_(e){let{elements:t,rect:a,offsetParent:i,strategy:l}=e;const c=l==="fixed",d=Pi(i),h=t?ph(t.floating):!1;if(i===d||h&&c)return a;let p={scrollLeft:0,scrollTop:0},b=Ni(1);const v=Ni(0),x=Li(i);if((x||!x&&!c)&&((uc(i)!=="body"||$u(d))&&(p=mh(i)),Li(i))){const C=Jl(i);b=Xs(i),v.x=C.x+i.clientLeft,v.y=C.y+i.clientTop}const S=d&&!x&&!c?EE(d,p):Ni(0);return{width:a.width*b.x,height:a.height*b.y,x:a.x*b.x-p.scrollLeft*b.x+v.x+S.x,y:a.y*b.y-p.scrollTop*b.y+v.y+S.y}}function __(e){return Array.from(e.getClientRects())}function A_(e){const t=Pi(e),a=mh(e),i=e.ownerDocument.body,l=ur(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),c=ur(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let d=-a.scrollLeft+bh(e);const h=-a.scrollTop;return ii(i).direction==="rtl"&&(d+=ur(t.clientWidth,i.clientWidth)-l),{width:l,height:c,x:d,y:h}}const SS=25;function I_(e,t){const a=gr(e),i=Pi(e),l=a.visualViewport;let c=i.clientWidth,d=i.clientHeight,h=0,p=0;if(l){c=l.width,d=l.height;const v=W0();(!v||v&&t==="fixed")&&(h=l.offsetLeft,p=l.offsetTop)}const b=bh(i);if(b<=0){const v=i.ownerDocument,x=v.body,S=getComputedStyle(x),C=v.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,O=Math.abs(i.clientWidth-x.clientWidth-C);O<=SS&&(c-=O)}else b<=SS&&(c+=b);return{width:c,height:d,x:h,y:p}}const N_=new Set(["absolute","fixed"]);function V_(e,t){const a=Jl(e,!0,t==="fixed"),i=a.top+e.clientTop,l=a.left+e.clientLeft,c=Li(e)?Xs(e):Ni(1),d=e.clientWidth*c.x,h=e.clientHeight*c.y,p=l*c.x,b=i*c.y;return{width:d,height:h,x:p,y:b}}function CS(e,t,a){let i;if(t==="viewport")i=I_(e,a);else if(t==="document")i=A_(Pi(e));else if(ri(t))i=V_(t,a);else{const l=CE(e);i={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return Zf(i)}function wE(e,t){const a=fl(e);return a===t||!ri(a)||ec(a)?!1:ii(a).position==="fixed"||wE(a,t)}function L_(e,t){const a=t.get(e);if(a)return a;let i=Vu(e,[],!1).filter(h=>ri(h)&&uc(h)!=="body"),l=null;const c=ii(e).position==="fixed";let d=c?fl(e):e;for(;ri(d)&&!ec(d);){const h=ii(d),p=F0(d);!p&&h.position==="fixed"&&(l=null),(c?!p&&!l:!p&&h.position==="static"&&!!l&&N_.has(l.position)||$u(d)&&!p&&wE(e,d))?i=i.filter(v=>v!==d):l=h,d=fl(d)}return t.set(e,i),i}function M_(e){let{element:t,boundary:a,rootBoundary:i,strategy:l}=e;const d=[...a==="clippingAncestors"?ph(t)?[]:L_(t,this._c):[].concat(a),i],h=d[0],p=d.reduce((b,v)=>{const x=CS(t,v,l);return b.top=ur(x.top,b.top),b.right=dl(x.right,b.right),b.bottom=dl(x.bottom,b.bottom),b.left=ur(x.left,b.left),b},CS(t,h,l));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function D_(e){const{width:t,height:a}=SE(e);return{width:t,height:a}}function P_(e,t,a){const i=Li(t),l=Pi(t),c=a==="fixed",d=Jl(e,!0,c,t);let h={scrollLeft:0,scrollTop:0};const p=Ni(0);function b(){p.x=bh(l)}if(i||!i&&!c)if((uc(t)!=="body"||$u(l))&&(h=mh(t)),i){const C=Jl(t,!0,c,t);p.x=C.x+t.clientLeft,p.y=C.y+t.clientTop}else l&&b();c&&!i&&l&&b();const v=l&&!i&&!c?EE(l,h):Ni(0),x=d.left+h.scrollLeft-p.x-v.x,S=d.top+h.scrollTop-p.y-v.y;return{x,y:S,width:d.width,height:d.height}}function am(e){return ii(e).position==="static"}function ES(e,t){if(!Li(e)||ii(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return Pi(e)===a&&(a=a.ownerDocument.body),a}function kE(e,t){const a=gr(e);if(ph(e))return a;if(!Li(e)){let l=fl(e);for(;l&&!ec(l);){if(ri(l)&&!am(l))return l;l=fl(l)}return a}let i=ES(e,t);for(;i&&S_(i)&&am(i);)i=ES(i,t);return i&&ec(i)&&am(i)&&!F0(i)?a:i||R_(e)||a}const U_=async function(e){const t=this.getOffsetParent||kE,a=this.getDimensions,i=await a(e.floating);return{reference:P_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function $_(e){return ii(e).direction==="rtl"}const H_={convertOffsetParentRelativeRectToViewportRelativeRect:z_,getDocumentElement:Pi,getClippingRect:M_,getOffsetParent:kE,getElementRects:U_,getClientRects:__,getDimensions:D_,getScale:Xs,isElement:ri,isRTL:$_};function RE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function B_(e,t){let a=null,i;const l=Pi(e);function c(){var h;clearTimeout(i),(h=a)==null||h.disconnect(),a=null}function d(h,p){h===void 0&&(h=!1),p===void 0&&(p=1),c();const b=e.getBoundingClientRect(),{left:v,top:x,width:S,height:C}=b;if(h||t(),!S||!C)return;const O=uf(x),w=uf(l.clientWidth-(v+S)),T=uf(l.clientHeight-(x+C)),A=uf(v),I={rootMargin:-O+"px "+-w+"px "+-T+"px "+-A+"px",threshold:ur(0,dl(1,p))||1};let M=!0;function R(V){const P=V[0].intersectionRatio;if(P!==p){if(!M)return d();P?d(!1,P):i=setTimeout(()=>{d(!1,1e-7)},1e3)}P===1&&!RE(b,e.getBoundingClientRect())&&d(),M=!1}try{a=new IntersectionObserver(R,{...I,root:l.ownerDocument})}catch{a=new IntersectionObserver(R,I)}a.observe(e)}return d(!0),c}function F_(e,t,a,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:c=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,b=G0(e),v=l||c?[...b?Vu(b):[],...Vu(t)]:[];v.forEach(A=>{l&&A.addEventListener("scroll",a,{passive:!0}),c&&A.addEventListener("resize",a)});const x=b&&h?B_(b,a):null;let S=-1,C=null;d&&(C=new ResizeObserver(A=>{let[_]=A;_&&_.target===b&&C&&(C.unobserve(t),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var I;(I=C)==null||I.observe(t)})),a()}),b&&!p&&C.observe(b),C.observe(t));let O,w=p?Jl(e):null;p&&T();function T(){const A=Jl(e);w&&!RE(w,A)&&a(),w=A,O=requestAnimationFrame(T)}return a(),()=>{var A;v.forEach(_=>{l&&_.removeEventListener("scroll",a),c&&_.removeEventListener("resize",a)}),x?.(),(A=C)==null||A.disconnect(),C=null,p&&cancelAnimationFrame(O)}}const W_=p_,G_=m_,q_=f_,Y_=v_,X_=h_,K_=d_,Z_=b_,Q_=(e,t,a)=>{const i=new Map,l={platform:H_,...a},c={...l.platform,_c:i};return u_(e,t,{...l,platform:c})};function wS(e=0,t=0,a=0,i=0){if(typeof DOMRect=="function")return new DOMRect(e,t,a,i);const l={x:e,y:t,width:a,height:i,top:t,right:e+a,bottom:t+i,left:e};return{...l,toJSON:()=>l}}function J_(e){if(!e)return wS();const{x:t,y:a,width:i,height:l}=e;return wS(t,a,i,l)}function eA(e,t){return{contextElement:pa(e)?e:e?.contextElement,getBoundingClientRect:()=>{const a=e,i=t?.(a);return i||!a?J_(i):a.getBoundingClientRect()}}}var kS=e=>({variable:e,reference:`var(${e})`}),OE={transformOrigin:kS("--transform-origin"),arrowOffset:kS("--arrow-offset")},tA=e=>e==="top"||e==="bottom"?"y":"x";function nA(e,t){return{name:"transformOrigin",fn(a){const{elements:i,middlewareData:l,placement:c,rects:d,y:h}=a,p=c.split("-")[0],b=tA(p),v=l.arrow?.x||0,x=l.arrow?.y||0,S=t?.clientWidth||0,C=t?.clientHeight||0,O=v+S/2,w=x+C/2,T=Math.abs(l.shift?.y||0),A=d.reference.height/2,_=C/2,I=e.offset?.mainAxis??e.gutter,M=typeof I=="number"?I+_:I??_,R=T>M,V={top:`${O}px calc(100% + ${M}px)`,bottom:`${O}px ${-M}px`,left:`calc(100% + ${M}px) ${w}px`,right:`${-M}px ${w}px`}[p],P=`${O}px ${d.reference.y+A-h}px`,F=!!e.overlap&&b==="y"&&R;return i.floating.style.setProperty(OE.transformOrigin.variable,F?P:V),{data:{transformOrigin:F?P:V}}}}}var aA={name:"rects",fn({rects:e}){return{data:e}}},rA=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:a}){if(!a.arrow)return{};const{x:i,y:l}=a.arrow,c=t.split("-")[0];return Object.assign(e.style,{left:i!=null?`${i}px`:"",top:l!=null?`${l}px`:"",[c]:`calc(100% + ${OE.arrowOffset.reference})`}),{}}}};function iA(e){const[t,a]=e.split("-");return{side:t,align:a,hasAlign:a!=null}}function oA(e){return e.split("-")[0]}var lA={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function RS(e,t){const a=e.devicePixelRatio||1;return Math.round(t*a)/a}function q0(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function sA(e,t,a){const i=e||t.createElement("div");return K_({element:i,padding:a.arrowPadding})}function cA(e,t){if(!Tj(t.offset??t.gutter))return W_(({placement:a})=>{const i=(e?.clientHeight||0)/2,l=t.offset?.mainAxis??t.gutter,c=typeof l=="number"?l+i:l??i,{hasAlign:d}=iA(a),h=d?void 0:t.shift,p=t.offset?.crossAxis??h;return E0({crossAxis:p,mainAxis:c,alignmentAxis:t.shift})})}function uA(e){if(!e.flip)return;const t=q0(e.boundary);return q_({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function dA(e){if(!e.slide&&!e.overlap)return;const t=q0(e.boundary);return G_({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Z_()})}function fA(e){return Y_({padding:e.overflowPadding,apply({elements:t,rects:a,availableHeight:i,availableWidth:l}){const c=t.floating,d=Math.round(a.reference.width),h=Math.round(a.reference.height);l=Math.floor(l),i=Math.floor(i),c.style.setProperty("--reference-width",`${d}px`),c.style.setProperty("--reference-height",`${h}px`),c.style.setProperty("--available-width",`${l}px`),c.style.setProperty("--available-height",`${i}px`)}})}function hA(e){if(e.hideWhenDetached)return X_({strategy:"referenceHidden",boundary:q0(e.boundary)??"clippingAncestors"})}function gA(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function pA(e,t,a={}){const i=a.getAnchorElement?.()??e,l=eA(i,a.getAnchorRect);if(!t||!l)return;const c=Object.assign({},lA,a),d=t.querySelector("[data-part=arrow]"),h=[cA(d,c),uA(c),dA(c),sA(d,t.ownerDocument,c),rA(d),nA({gutter:c.gutter,offset:c.offset,overlap:c.overlap},d),fA(c),hA(c),aA],{placement:p,strategy:b,onComplete:v,onPositioned:x}=c,S=async()=>{if(!l||!t)return;const T=await Q_(l,t,{placement:p,middleware:h,strategy:b});v?.(T),x?.({placed:!0});const A=xn(t),_=RS(A,T.x),I=RS(A,T.y);t.style.setProperty("--x",`${_}px`),t.style.setProperty("--y",`${I}px`),c.hideWhenDetached&&(T.middlewareData.hide?.referenceHidden?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const M=t.firstElementChild;if(M){const R=YC(M);t.style.setProperty("--z-index",R.zIndex)}},C=async()=>{a.updatePosition?(await a.updatePosition({updatePosition:S,floatingElement:t}),x?.({placed:!0})):await S()},O=gA(c.listeners),w=c.listeners?F_(l,t,C,O):Mj;return C(),()=>{w?.(),x?.({placed:!1})}}function oi(e,t,a={}){const{defer:i,...l}=a,c=i?Ye:h=>h(),d=[];return d.push(c(()=>{const h=typeof e=="function"?e():e,p=typeof t=="function"?t():t;d.push(pA(h,p,l))})),()=>{d.forEach(h=>h?.())}}function mA(e){const t={each(a){for(let i=0;i{try{c.document.addEventListener(a,i,l)}catch{}}),()=>{try{t.removeEventListener(a,i,l)}catch{}}},removeEventListener(a,i,l){t.each(c=>{try{c.document.removeEventListener(a,i,l)}catch{}})}};return t}function bA(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(a,i,l)=>{try{t?.addEventListener(a,i,l)}catch{}return()=>{try{t?.removeEventListener(a,i,l)}catch{}}},removeEventListener:(a,i,l)=>{try{t?.removeEventListener(a,i,l)}catch{}}}}var OS="pointerdown.outside",jS="focus.outside";function vA(e){for(const t of e)if(pa(t)&&T0(t))return!0;return!1}var jE=e=>"clientY"in e;function xA(e,t){if(!jE(t)||!e)return!1;const a=e.getBoundingClientRect();return a.width===0||a.height===0?!1:a.top<=t.clientY&&t.clientY<=a.top+a.height&&a.left<=t.clientX&&t.clientX<=a.left+a.width}function yA(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function TS(e,t){if(!t||!jE(e))return!1;const a=t.scrollHeight>t.clientHeight,i=a&&e.clientX>t.offsetLeft+t.clientWidth,l=t.scrollWidth>t.clientWidth,c=l&&e.clientY>t.offsetTop+t.clientHeight,d={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(a?16:0),height:t.clientHeight+(l?16:0)},h={x:e.clientX,y:e.clientY};return yA(d,h)?i||c:!1}function SA(e,t){const{exclude:a,onFocusOutside:i,onPointerDownOutside:l,onInteractOutside:c,defer:d,followControlledElements:h=!0}=t;if(!e)return;const p=li(e),b=xn(e),v=mA(b),x=bA(b);function S(I,M){if(!pa(M)||!M.isConnected||Co(e,M)||xA(e,I)||h&&kT(e,M))return!1;const R=p.querySelector(`[aria-controls="${e.id}"]`);if(R){const P=Gf(R);if(TS(I,P))return!1}const V=Gf(e);return TS(I,V)?!1:!a?.(M)}const C=new Set,O=Qs(e?.getRootNode());function w(I){function M(R){const V=d&&!cS()?Ye:B=>B(),P=R??I,F=P?.composedPath?.()??[P?.target];V(()=>{const B=O?F[0]:Vi(I);if(!(!e||!S(I,B))){if(l||c){const W=zu(l,c);e.addEventListener(OS,W,{once:!0})}zS(e,OS,{bubbles:!1,cancelable:!0,detail:{originalEvent:P,contextmenu:MT(P),focusable:vA(F),target:B}})}})}I.pointerType==="touch"?(C.forEach(R=>R()),C.add(rn(p,"click",M,{once:!0})),C.add(x.addEventListener("click",M,{once:!0})),C.add(v.addEventListener("click",M,{once:!0}))):M()}const T=new Set,A=setTimeout(()=>{T.add(rn(p,"pointerdown",w,!0)),T.add(x.addEventListener("pointerdown",w,!0)),T.add(v.addEventListener("pointerdown",w,!0))},0);function _(I){(d?Ye:R=>R())(()=>{const R=I?.composedPath?.()??[I?.target],V=O?R[0]:Vi(I);if(!(!e||!S(I,V))){if(i||c){const P=zu(i,c);e.addEventListener(jS,P,{once:!0})}zS(e,jS,{bubbles:!1,cancelable:!0,detail:{originalEvent:I,contextmenu:!1,focusable:T0(V),target:V}})}})}return cS()||(T.add(rn(p,"focusin",_,!0)),T.add(x.addEventListener("focusin",_,!0)),T.add(v.addEventListener("focusin",_,!0))),()=>{clearTimeout(A),C.forEach(I=>I()),T.forEach(I=>I())}}function TE(e,t){const{defer:a}=t,i=a?Ye:c=>c(),l=[];return l.push(i(()=>{const c=typeof e=="function"?e():e;l.push(SA(c,t))})),()=>{l.forEach(c=>c?.())}}function zS(e,t,a){const i=e.ownerDocument.defaultView||window,l=new i.CustomEvent(t,a);return e.dispatchEvent(l)}function CA(e,t){const a=i=>{i.key==="Escape"&&(i.isComposing||t?.(i))};return rn(li(e),"keydown",a,{capture:!0})}var _S="layer:request-dismiss",Lr={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){const t=this.indexOf(e),a=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return tt.type===e)},getNestedLayersByType(e,t){const a=this.indexOf(e);return a===-1?[]:this.layers.slice(a+1).filter(i=>i.type===t)},getParentLayerOfType(e,t){const a=this.indexOf(e);if(!(a<=0))return this.layers.slice(0,a).reverse().find(i=>i.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return this.getNestedLayers(e).some(a=>Co(a.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Co(t,e))},add(e){this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(tLr.dismiss(i.node,e)),this.layers.splice(t,1),this.syncLayers())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`),e.node.removeAttribute("data-nested"),e.node.removeAttribute("data-has-nested"),this.getParentLayerOfType(e.node,e.type)&&e.node.setAttribute("data-nested",e.type);const i=this.countNestedLayersOfType(e.node,e.type);i>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${i}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const a=this.indexOf(e);if(a===-1)return;const i=this.layers[a];wA(e,_S,l=>{i.requestDismiss?.(l),l.defaultPrevented||i?.dismiss()}),EA(e,_S,{originalLayer:e,targetLayer:t,originalIndex:a,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function EA(e,t,a){const i=e.ownerDocument.defaultView||window,l=new i.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:a});return e.dispatchEvent(l)}function wA(e,t,a){e.addEventListener(t,a,{once:!0})}var AS;function IS(){Lr.layers.forEach(({node:e})=>{e.style.pointerEvents=Lr.isBelowPointerBlockingLayer(e)?"none":"auto"})}function kA(e){e.style.pointerEvents=""}function RA(e,t){const a=li(e),i=[];return Lr.hasPointerBlockingLayer()&&!a.body.hasAttribute("data-inert")&&(AS=document.body.style.pointerEvents,queueMicrotask(()=>{a.body.style.pointerEvents="none",a.body.setAttribute("data-inert","")})),t?.forEach(l=>{const[c,d]=Rz(()=>{const h=l();return pa(h)?h:null},{timeout:1e3});c.then(h=>i.push(Sz(h,{pointerEvents:"auto"}))),i.push(d)}),()=>{Lr.hasPointerBlockingLayer()||(queueMicrotask(()=>{a.body.style.pointerEvents=AS,a.body.removeAttribute("data-inert"),a.body.style.length===0&&a.body.removeAttribute("style")}),i.forEach(l=>l()))}}function OA(e,t){const{warnOnMissingNode:a=!0}=t;if(a&&!e){Au("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:i,onRequestDismiss:l,pointerBlocking:c,exclude:d,debug:h,type:p="dialog"}=t,b={dismiss:i,node:e,type:p,pointerBlocking:c,requestDismiss:l};Lr.add(b),IS();function v(w){const T=Vi(w.detail.originalEvent);Lr.isBelowPointerBlockingLayer(e)||Lr.isInBranch(T)||(t.onPointerDownOutside?.(w),t.onInteractOutside?.(w),!w.defaultPrevented&&(h&&console.log("onPointerDownOutside:",w.detail.originalEvent),i?.()))}function x(w){const T=Vi(w.detail.originalEvent);Lr.isInBranch(T)||(t.onFocusOutside?.(w),t.onInteractOutside?.(w),!w.defaultPrevented&&(h&&console.log("onFocusOutside:",w.detail.originalEvent),i?.()))}function S(w){Lr.isTopMost(e)&&(t.onEscapeKeyDown?.(w),!w.defaultPrevented&&i&&(w.preventDefault(),i()))}function C(w){if(!e)return!1;const T=typeof d=="function"?d():d,A=Array.isArray(T)?T:[T],_=t.persistentElements?.map(I=>I()).filter(pa);return _&&A.push(..._),A.some(I=>Co(I,w))||Lr.isInNestedLayer(e,w)}const O=[c?RA(e,t.persistentElements):void 0,CA(e,S),TE(e,{exclude:C,onFocusOutside:x,onPointerDownOutside:v,defer:t.defer})];return()=>{Lr.remove(e),IS(),kA(e),O.forEach(w=>w?.())}}function Hu(e,t){const{defer:a}=t,i=a?Ye:c=>c(),l=[];return l.push(i(()=>{const c=ll(e)?e():e;l.push(OA(c,t))})),()=>{l.forEach(c=>c?.())}}var zE=He("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);zE.build();var jA=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,TA=e=>e.ids?.control??`color-picker:${e.id}:control`,zA=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,_A=e=>e.ids?.content??`color-picker:${e.id}:content`,AA=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,IA=e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`,NA=e=>e.ids?.area??`color-picker:${e.id}:area`,VA=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,LA=(e,t)=>e.ids?.channelSliderTrack?.(t)??`color-picker:${e.id}:slider-track:${t}`,MA=(e,t)=>e.ids?.channelSliderThumb?.(t)??`color-picker:${e.id}:slider-thumb:${t}`,Vf=e=>e.getById(_A(e)),DA=e=>e.getById(VA(e)),PA=(e,t)=>e.getById(MA(e,t)),UA=e=>e.getById(IA(e)),NS=e=>e.getById(jA(e)),$A=e=>e.getById(NA(e)),HA=(e,t,a)=>{const i=$A(e);if(!i)return;const{getPercentValue:l}=A0(t,i);return{x:l({dir:a,orientation:"horizontal"}),y:l({orientation:"vertical"})}},BA=e=>e.getById(TA(e)),rm=e=>e.getById(zA(e)),FA=e=>e.getById(AA(e)),WA=(e,t)=>e.getById(LA(e,t)),GA=(e,t,a,i)=>{const l=WA(e,a);if(!l)return;const{getPercentValue:c}=A0(t,l);return{x:c({dir:i,orientation:"horizontal"}),y:c({orientation:"vertical"})}},qA=e=>[...Ql(Vf(e),"input[data-channel]"),...Ql(BA(e),"input[data-channel]")];function YA(e,t){if(t==null)return"";if(t==="hex")return e.toString("hex");if(t==="css")return e.toString("css");if(t in e)return e.getChannelValue(t).toString();const a=e.getFormat()==="hsla";switch(t){case"hue":return a?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return a?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}var VS=e=>Yf(e),XA=/^[0-9a-fA-F]{3,8}$/;function KA(e){return XA.test(e)}function ZA(e){return e.startsWith("#")?e:KA(e)?`#${e}`:e}var{and:QA}=Di();QA("isOpenControlled","closeOnSelect");function LS(e,t,a){const i=qA(e);Ye(()=>{i.forEach(l=>{const c=l.dataset.channel;ul(l,YA(a||t,c))})})}function JA(e,t){const a=UA(e);a&&Ye(()=>ul(a,t))}Me()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]);Me()(["xChannel","yChannel"]);Me()(["channel","orientation"]);Me()(["value","disabled"]);Me()(["value","respectAlpha"]);Me()(["size"]);var df="__live-region__";function e5(e={}){const{level:t="polite",document:a=document,root:i,delay:l=0}=e,c=a.defaultView??window,d=i??a.body;function h(b,v){a.getElementById(df)?.remove(),v=v??l;const S=a.createElement("span");S.id=df,S.dataset.liveAnnouncer="true";const C=t!=="assertive"?"status":"alert";S.setAttribute("aria-live",t),S.setAttribute("role",C),Object.assign(S.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}),d.appendChild(S),c.setTimeout(()=>{S.textContent=b},v)}function p(){a.getElementById(df)?.remove()}return{announce:h,destroy:p,toJSON(){return df}}}var _E=He("splitter").parts("root","panel","resizeTrigger","resizeTriggerIndicator");_E.build();Me()(["dir","getRootNode","id","ids","onResize","onResizeStart","onResizeEnd","onCollapse","onExpand","orientation","size","defaultSize","panels","keyboardResizeBy","nonce"]);Me()(["id"]);Me()(["disabled","id"]);var AE=He("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");AE.build();var IE=e=>e.ids?.root??`accordion:${e.id}`,NE=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,t5=e=>e.getById(IE(e)),vh=e=>{const a=`[data-controls][data-ownedby='${CSS.escape(IE(e))}']:not([disabled])`;return Ql(t5(e),a)},n5=e=>qs(vh(e)),a5=e=>lh(vh(e)),r5=(e,t)=>oE(vh(e),NE(e,t)),i5=(e,t)=>lE(vh(e),NE(e,t)),{and:o5,not:l5}=Di();o5("isExpanded","canToggle"),l5("isExpanded");Me()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]);Me()(["value","disabled"]);var yu=(e,t)=>({x:e,y:t});function s5(e){const{x:t,y:a,width:i,height:l}=e,c=t+i/2,d=a+l/2;return{x:t,y:a,width:i,height:l,minX:t,minY:a,maxX:t+i,maxY:a+l,midX:c,midY:d,center:yu(c,d)}}function c5(e){const t=yu(e.minX,e.minY),a=yu(e.maxX,e.minY),i=yu(e.maxX,e.maxY),l=yu(e.minX,e.maxY);return{top:t,right:a,bottom:i,left:l}}function u5(e,t){const a=s5(e),{top:i,right:l,left:c,bottom:d}=c5(a),[h]=t.split("-");return{top:[c,i,l,d],right:[i,l,d,c],bottom:[i,c,d,l],left:[l,i,c,d]}[h]}function d5(e,t){const{x:a,y:i}=t;let l=!1;for(let c=0,d=e.length-1;ci!=v>i&&a<(b-h)*(i-p)/(v-p)+h&&(l=!l)}return l}var VE=He("avatar").parts("root","image","fallback");VE.build();Me()(["dir","id","ids","onStatusChange","getRootNode"]);var LE=He("carousel").parts("root","itemGroup","item","control","nextTrigger","prevTrigger","indicatorGroup","indicator","autoplayTrigger","progressText");LE.build();Me()(["dir","getRootNode","id","ids","loop","page","defaultPage","onPageChange","orientation","slideCount","slidesPerPage","slidesPerMove","spacing","padding","autoplay","allowMouseDrag","inViewThreshold","translations","snapType","autoSize","onDragStatusChange","onAutoplayStatusChange"]);Me()(["index","readOnly"]);Me()(["index","snapAlign"]);const f5=LE.extendWith("progressText","autoplayIndicator"),[ME,xh]=gl({name:"CheckboxContext",hookName:"useCheckboxContext",providerName:""}),DE=m.forwardRef((e,t)=>{const a=xh(),i=On(a.getControlProps(),e);return u.jsx(Nn.div,{...i,ref:t})});DE.displayName="CheckboxControl";function h5(e){return!(e.metaKey||!fh()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var g5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function p5(e,t,a){const i=a?Vi(a):null,l=xn(i);return e=e||i instanceof l.HTMLInputElement&&!g5.has(i?.type)||i instanceof l.HTMLTextAreaElement||i instanceof l.HTMLElement&&i.isContentEditable,!(e&&t==="keyboard"&&a instanceof l.KeyboardEvent&&!Reflect.has(m5,a.key))}var pl=null,Hm=new Set,Qf=new Map,es=!1,Bm=!1,m5={Tab:!0,Escape:!0};function yh(e,t){for(let a of Hm)a(e,t)}function Jf(e){es=!0,h5(e)&&(pl="keyboard",yh("keyboard",e))}function Mr(e){pl="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(es=!0,yh("pointer",e))}function PE(e){LT(e)&&(es=!0,pl="virtual")}function UE(e){const t=Vi(e);t===xn(t)||t===li(t)||(!es&&!Bm&&(pl="virtual",yh("virtual",e)),es=!1,Bm=!1)}function $E(){es=!1,Bm=!0}function b5(e){if(typeof window>"u"||Qf.get(xn(e)))return;const t=xn(e),a=li(e);let i=t.HTMLElement.prototype.focus;function l(){pl="virtual",yh("virtual",null),es=!0,i.apply(this,arguments)}try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:l})}catch{}a.addEventListener("keydown",Jf,!0),a.addEventListener("keyup",Jf,!0),a.addEventListener("click",PE,!0),t.addEventListener("focus",UE,!0),t.addEventListener("blur",$E,!1),typeof t.PointerEvent<"u"?(a.addEventListener("pointerdown",Mr,!0),a.addEventListener("pointermove",Mr,!0),a.addEventListener("pointerup",Mr,!0)):(a.addEventListener("mousedown",Mr,!0),a.addEventListener("mousemove",Mr,!0),a.addEventListener("mouseup",Mr,!0)),t.addEventListener("beforeunload",()=>{v5(e)},{once:!0}),Qf.set(t,{focus:i})}var v5=(e,t)=>{const a=xn(e),i=li(e),l=Qf.get(a);if(l){try{Object.defineProperty(a.HTMLElement.prototype,"focus",{configurable:!0,value:l.focus})}catch{}i.removeEventListener("keydown",Jf,!0),i.removeEventListener("keyup",Jf,!0),i.removeEventListener("click",PE,!0),a.removeEventListener("focus",UE,!0),a.removeEventListener("blur",$E,!1),typeof a.PointerEvent<"u"?(i.removeEventListener("pointerdown",Mr,!0),i.removeEventListener("pointermove",Mr,!0),i.removeEventListener("pointerup",Mr,!0)):(i.removeEventListener("mousedown",Mr,!0),i.removeEventListener("mousemove",Mr,!0),i.removeEventListener("mouseup",Mr,!0)),Qf.delete(a)}};function x5(){return pl}function Fm(){return pl==="keyboard"}function Y0(e={}){const{isTextInput:t,autoFocus:a,onChange:i,root:l}=e;b5(l),i?.({isFocusVisible:a||Fm(),modality:pl});const c=(d,h)=>{p5(!!t,d,h)&&i?.({isFocusVisible:Fm(),modality:d})};return Hm.add(c),()=>{Hm.delete(c)}}var HE=He("checkbox").parts("root","label","control","indicator"),ff=HE.build(),BE=e=>e.ids?.root??`checkbox:${e.id}`,MS=e=>e.ids?.label??`checkbox:${e.id}:label`,y5=e=>e.ids?.control??`checkbox:${e.id}:control`,Wm=e=>e.ids?.hiddenInput??`checkbox:${e.id}:input`,S5=e=>e.getById(BE(e)),Su=e=>e.getById(Wm(e));function C5(e,t){const{send:a,context:i,prop:l,computed:c,scope:d}=e,h=!!l("disabled"),p=!!l("readOnly"),b=!!l("required"),v=!!l("invalid"),x=!h&&i.get("focused"),S=!h&&i.get("focusVisible"),C=c("checked"),O=c("indeterminate"),w=i.get("checked"),T={"data-active":gt(i.get("active")),"data-focus":gt(x),"data-focus-visible":gt(S),"data-readonly":gt(p),"data-hover":gt(i.get("hovered")),"data-disabled":gt(h),"data-state":O?"indeterminate":C?"checked":"unchecked","data-invalid":gt(v),"data-required":gt(b)};return{checked:C,disabled:h,indeterminate:O,focused:x,checkedState:w,setChecked(A){a({type:"CHECKED.SET",checked:A,isTrusted:!1})},toggleChecked(){a({type:"CHECKED.TOGGLE",checked:C,isTrusted:!1})},getRootProps(){return t.label({...ff.root.attrs,...T,dir:l("dir"),id:BE(d),htmlFor:Wm(d),onPointerMove(){h||a({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){h||a({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(A){Vi(A)===Su(d)&&A.stopPropagation()}})},getLabelProps(){return t.element({...ff.label.attrs,...T,dir:l("dir"),id:MS(d)})},getControlProps(){return t.element({...ff.control.attrs,...T,dir:l("dir"),id:y5(d),"aria-hidden":!0})},getIndicatorProps(){return t.element({...ff.indicator.attrs,...T,dir:l("dir"),hidden:!O&&!C})},getHiddenInputProps(){return t.input({id:Wm(d),type:"checkbox",required:l("required"),defaultChecked:C,disabled:h,"aria-labelledby":MS(d),"aria-invalid":v,name:l("name"),form:l("form"),value:l("value"),style:wz,onFocus(){const A=Fm();a({type:"CONTEXT.SET",context:{focused:!0,focusVisible:A}})},onBlur(){a({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(A){if(p){A.preventDefault();return}const _=A.currentTarget.checked;a({type:"CHECKED.SET",checked:_,isTrusted:!0})}})}}}var{not:DS}=Di(),E5={props({props:e}){return{value:"on",...e,defaultChecked:e.defaultChecked??!1}},initialState(){return"ready"},context({prop:e,bindable:t}){return{checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(a){e("onCheckedChange")?.({checked:a})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}},watch({track:e,context:t,prop:a,action:i}){e([()=>a("disabled")],()=>{i(["removeFocusIfNeeded"])}),e([()=>t.get("checked")],()=>{i(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:DS("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:DS("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{indeterminate:({context:e})=>Lf(e.get("checked")),checked:({context:e})=>w5(e.get("checked")),disabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled")},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({context:e,computed:t,scope:a}){if(!t("disabled"))return fz({pointerNode:S5(a),keyboardNode:Su(a),isValidKey:i=>i.key===" ",onPress:()=>e.set("active",!1),onPressStart:()=>e.set("active",!0),onPressEnd:()=>e.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("disabled"))return Y0({root:t.getRootNode?.()})},trackFormControlState({context:e,scope:t}){return sc(Su(t),{onFieldsetDisabledChange(a){e.set("fieldsetDisabled",a)},onFormReset(){e.set("checked",e.initial("checked"))}})}},actions:{setContext({context:e,event:t}){for(const a in t.context)e.set(a,t.context[a])},syncInputElement({context:e,computed:t,scope:a}){const i=Su(a);i&&(QC(i,t("checked")),i.indeterminate=Lf(e.get("checked")))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.get("focused")&&(e.set("focused",!1),e.set("focusVisible",!1))},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e,computed:t}){const a=Lf(t("checked"))?!0:!t("checked");e.set("checked",a)},dispatchChangeEvent({computed:e,scope:t}){queueMicrotask(()=>{const a=Su(t);qT(a,{checked:e("checked")})})}}}};function Lf(e){return e==="indeterminate"}function w5(e){return Lf(e)?!1:!!e}Me()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const FE=HE.extendWith("group");function k5(e){const{value:t,onChange:a,defaultValue:i}=e,[l,c]=m.useState(i),d=t!==void 0,h=d?t:l,p=m.useCallback(b=>(d||c(b),a?.(b)),[d,a]);return[h,p]}const[GU,R5]=gl({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"",strict:!1});function O5(e={}){const t=R5(),{defaultValue:a,value:i,onValueChange:l,disabled:c=t?.disabled,readOnly:d,name:h,invalid:p=t?.invalid}=e,b=!(c||d),v=Pz(l,{sync:!0}),[x,S]=k5({value:i,defaultValue:a||[],onChange:v}),C=_=>x.some(I=>String(I)===String(_)),O=_=>{C(_)?T(_):w(_)},w=_=>{b&&(C(_)||S(x.concat(_)))},T=_=>{b&&S(x.filter(I=>String(I)!==String(_)))};return{isChecked:C,value:x,name:h,disabled:!!c,readOnly:!!d,invalid:!!p,setValue:S,addValue:w,toggleValue:O,getItemProps:_=>({checked:_.value!=null?C(_.value):void 0,onCheckedChange(){_.value!=null&&O(_.value)},name:h,disabled:c,readOnly:d,invalid:p})}}const[j5,T5]=gl({name:"CheckboxGroupContext",hookName:"useCheckboxGroupContext",providerName:"",strict:!1}),z5=as(),WE=m.forwardRef((e,t)=>{const[a,i]=z5(e,["defaultValue","value","onValueChange","disabled","invalid","readOnly","name"]),l=O5(a);return u.jsx(j5,{value:l,children:u.jsx(Nn.div,{ref:t,role:"group",...i,...FE.build().group.attrs})})});WE.displayName="CheckboxGroup";const[qU,Bu]=gl({name:"FieldContext",hookName:"useFieldContext",providerName:"",strict:!1}),GE=m.forwardRef((e,t)=>{const a=xh(),i=On(a.getHiddenInputProps(),e),l=Bu();return u.jsx(Nn.input,{"aria-describedby":l?.ariaDescribedby,...i,ref:t})});GE.displayName="CheckboxHiddenInput";const qE=m.forwardRef((e,t)=>{const a=xh(),i=On(a.getLabelProps(),e);return u.jsx(Nn.span,{...i,ref:t})});qE.displayName="CheckboxLabel";const _5=(e={})=>{const t=T5(),a=Bu(),i=m.useMemo(()=>On(e,t?.getItemProps({value:e.value})??{}),[e,t]),l=m.useId(),{getRootNode:c}=FC(),{dir:d}=sE(),h={id:l,ids:{label:a?.ids.label,hiddenInput:a?.ids.control},dir:d,disabled:a?.disabled,readOnly:a?.readOnly,invalid:a?.invalid,required:a?.required,getRootNode:c,...i},p=uE(E5,h);return C5(p,fE)},A5=as(),YE=m.forwardRef((e,t)=>{const[a,i]=A5(e,["checked","defaultChecked","disabled","form","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]),l=_5(a),c=On(l.getRootProps(),i);return u.jsx(ME,{value:l,children:u.jsx(Nn.label,{...c,ref:t})})});YE.displayName="CheckboxRoot";const I5=as(),XE=m.forwardRef((e,t)=>{const[{value:a},i]=I5(e,["value"]),l=On(a.getRootProps(),i);return u.jsx(ME,{value:a,children:u.jsx(Nn.label,{...l,ref:t})})});XE.displayName="CheckboxRootProvider";var KE=He("clipboard").parts("root","control","trigger","indicator","input","label");KE.build();Me()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]);Me()(["copied"]);const N5=zE.extendWith("view");var V5=Object.defineProperty,L5=(e,t,a)=>t in e?V5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,he=(e,t,a)=>L5(e,typeof t!="symbol"?t+"":t,a),Mf={itemToValue(e){return typeof e=="string"?e:Kl(e)&&So(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:Kl(e)&&So(e,"label")?e.label:Mf.itemToValue(e)},isItemDisabled(e){return Kl(e)&&So(e,"disabled")?!!e.disabled:!1}},dc=class ZE{constructor(t){this.options=t,he(this,"items"),he(this,"indexMap",null),he(this,"copy",a=>new ZE({...this.options,items:a??[...this.items]})),he(this,"isEqual",a=>ka(this.items,a.items)),he(this,"setItems",a=>this.copy(a)),he(this,"getValues",(a=this.items)=>{const i=[];for(const l of a){const c=this.getItemValue(l);c!=null&&i.push(c)}return i}),he(this,"find",a=>{if(a==null)return null;const i=this.indexOf(a);return i!==-1?this.at(i):null}),he(this,"findMany",a=>{const i=[];for(const l of a){const c=this.find(l);c!=null&&i.push(c)}return i}),he(this,"at",a=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[a]??null;let i=0;const l=this.group();for(const[,c]of l)for(const d of c){if(i===a)return d;i++}return null}),he(this,"sortFn",(a,i)=>{const l=this.indexOf(a),c=this.indexOf(i);return(l??0)-(c??0)}),he(this,"sort",a=>[...a].sort(this.sortFn.bind(this))),he(this,"getItemValue",a=>a==null?null:this.options.itemToValue?.(a)??Mf.itemToValue(a)),he(this,"getItemDisabled",a=>a==null?!1:this.options.isItemDisabled?.(a)??Mf.isItemDisabled(a)),he(this,"stringifyItem",a=>a==null?null:this.options.itemToString?.(a)??Mf.itemToString(a)),he(this,"stringify",a=>a==null?null:this.stringifyItem(this.find(a))),he(this,"stringifyItems",(a,i=", ")=>{const l=[];for(const c of a){const d=this.stringifyItem(c);d!=null&&l.push(d)}return l.join(i)}),he(this,"stringifyMany",(a,i)=>this.stringifyItems(this.findMany(a),i)),he(this,"has",a=>this.indexOf(a)!==-1),he(this,"hasItem",a=>a==null?!1:this.has(this.getItemValue(a))),he(this,"group",()=>{const{groupBy:a,groupSort:i}=this.options;if(!a)return[["",[...this.items]]];const l=new Map;this.items.forEach((d,h)=>{const p=a(d,h);l.has(p)||l.set(p,[]),l.get(p).push(d)});let c=Array.from(l.entries());return i&&c.sort(([d],[h])=>{if(typeof i=="function")return i(d,h);if(Array.isArray(i)){const p=i.indexOf(d),b=i.indexOf(h);return p===-1?1:b===-1?-1:p-b}return i==="asc"?d.localeCompare(h):i==="desc"?h.localeCompare(d):0}),c}),he(this,"getNextValue",(a,i=1,l=!1)=>{let c=this.indexOf(a);if(c===-1)return null;for(c=l?Math.min(c+i,this.size-1):c+i;c<=this.size&&this.getItemDisabled(this.at(c));)c++;return this.getItemValue(this.at(c))}),he(this,"getPreviousValue",(a,i=1,l=!1)=>{let c=this.indexOf(a);if(c===-1)return null;for(c=l?Math.max(c-i,0):c-i;c>=0&&this.getItemDisabled(this.at(c));)c--;return this.getItemValue(this.at(c))}),he(this,"indexOf",a=>{if(a==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(i=>this.getItemValue(i)===a);if(!this.indexMap){this.indexMap=new Map;let i=0;const l=this.group();for(const[,c]of l)for(const d of c){const h=this.getItemValue(d);h!=null&&this.indexMap.set(h,i),i++}}return this.indexMap.get(a)??-1}),he(this,"getByText",(a,i)=>{const l=i!=null?this.indexOf(i):-1,c=a.length===1;for(let d=0;d{const{state:l,currentValue:c,timeout:d=350}=i,h=l.keysSoFar+a,b=h.length>1&&Array.from(h).every(O=>O===h[0])?h[0]:h,v=this.getByText(b,c),x=this.getItemValue(v);function S(){clearTimeout(l.timer),l.timer=-1}function C(O){l.keysSoFar=O,S(),O!==""&&(l.timer=+setTimeout(()=>{C(""),S()},d))}return C(h),x}),he(this,"update",(a,i)=>{let l=this.indexOf(a);return l===-1?this:this.copy([...this.items.slice(0,l),i,...this.items.slice(l+1)])}),he(this,"upsert",(a,i,l="append")=>{let c=this.indexOf(a);return c===-1?(l==="append"?this.append:this.prepend)(i):this.copy([...this.items.slice(0,c),i,...this.items.slice(c+1)])}),he(this,"insert",(a,...i)=>this.copy(nu(this.items,a,...i))),he(this,"insertBefore",(a,...i)=>{let l=this.indexOf(a);if(l===-1)if(this.items.length===0)l=0;else return this;return this.copy(nu(this.items,l,...i))}),he(this,"insertAfter",(a,...i)=>{let l=this.indexOf(a);if(l===-1)if(this.items.length===0)l=0;else return this;return this.copy(nu(this.items,l+1,...i))}),he(this,"prepend",(...a)=>this.copy(nu(this.items,0,...a))),he(this,"append",(...a)=>this.copy(nu(this.items,this.items.length,...a))),he(this,"filter",a=>{const i=this.items.filter((l,c)=>a(this.stringifyItem(l),c,l));return this.copy(i)}),he(this,"remove",(...a)=>{const i=a.map(l=>typeof l=="string"?l:this.getItemValue(l));return this.copy(this.items.filter(l=>{const c=this.getItemValue(l);return c==null?!1:!i.includes(c)}))}),he(this,"move",(a,i)=>{const l=this.indexOf(a);return l===-1?this:this.copy(hf(this.items,[l],i))}),he(this,"moveBefore",(a,...i)=>{let l=this.items.findIndex(d=>this.getItemValue(d)===a);if(l===-1)return this;let c=i.map(d=>this.items.findIndex(h=>this.getItemValue(h)===d)).sort((d,h)=>d-h);return this.copy(hf(this.items,c,l))}),he(this,"moveAfter",(a,...i)=>{let l=this.items.findIndex(d=>this.getItemValue(d)===a);if(l===-1)return this;let c=i.map(d=>this.items.findIndex(h=>this.getItemValue(h)===d)).sort((d,h)=>d-h);return this.copy(hf(this.items,c,l+1))}),he(this,"reorder",(a,i)=>this.copy(hf(this.items,[a],i))),he(this,"compareValue",(a,i)=>{const l=this.indexOf(a),c=this.indexOf(i);return lc?1:0}),he(this,"range",(a,i)=>{let l=[],c=a;for(;c!=null;){if(this.find(c)&&l.push(c),c===i)return l;c=this.getNextValue(c)}return[]}),he(this,"getValueRange",(a,i)=>a&&i?this.compareValue(a,i)<=0?this.range(a,i):this.range(i,a):[]),he(this,"toString",()=>{let a="";for(const i of this.items){const l=this.getItemValue(i),c=this.stringifyItem(i),d=this.getItemDisabled(i),h=[l,c,d].filter(Boolean).join(":");a+=h+","}return a}),he(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},M5=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function nu(e,t,...a){return[...e.slice(0,t),...a,...e.slice(t)]}function hf(e,t,a){t=[...t].sort((l,c)=>l-c);const i=t.map(l=>e[l]);for(let l=t.length-1;l>=0;l--)e=[...e.slice(0,t[l]),...e.slice(t[l]+1)];return a=Math.max(0,a-t.filter(l=>l{const a=new Df([...this]);return this.sync(a)}),he(this,"sync",a=>(a.selectionMode=this.selectionMode,a.deselectable=this.deselectable,a)),he(this,"isEmpty",()=>this.size===0),he(this,"isSelected",a=>this.selectionMode==="none"||a==null?!1:this.has(a)),he(this,"canSelect",(a,i)=>this.selectionMode!=="none"||!a.getItemDisabled(a.find(i))),he(this,"firstSelectedValue",a=>{let i=null;for(let l of this)(!i||a.compareValue(l,i)<0)&&(i=l);return i}),he(this,"lastSelectedValue",a=>{let i=null;for(let l of this)(!i||a.compareValue(l,i)>0)&&(i=l);return i}),he(this,"extendSelection",(a,i,l)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single")return this.replaceSelection(a,l);const c=this.copy(),d=Array.from(this).pop();for(let h of a.getValueRange(i,d??l))c.delete(h);for(let h of a.getValueRange(l,i))this.canSelect(a,h)&&c.add(h);return c}),he(this,"toggleSelection",(a,i)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single"&&!this.isSelected(i))return this.replaceSelection(a,i);const l=this.copy();return l.has(i)?l.delete(i):l.canSelect(a,i)&&l.add(i),l}),he(this,"replaceSelection",(a,i)=>{if(this.selectionMode==="none")return this;if(i==null)return this;if(!this.canSelect(a,i))return this;const l=new Df([i]);return this.sync(l)}),he(this,"setSelection",a=>{if(this.selectionMode==="none")return this;let i=new Df;for(let l of a)if(l!=null&&(i.add(l),this.selectionMode==="single"))break;return this.sync(i)}),he(this,"clearSelection",()=>{const a=this.copy();return a.deselectable&&a.size>0&&a.clear(),a}),he(this,"select",(a,i,l)=>this.selectionMode==="none"?this:this.selectionMode==="single"?this.isSelected(i)&&this.deselectable?this.toggleSelection(a,i):this.replaceSelection(a,i):this.selectionMode==="multiple"||l?this.toggleSelection(a,i):this.replaceSelection(a,i)),he(this,"deselect",a=>{const i=this.copy();return i.delete(a),i}),he(this,"isEqual",a=>ka(Array.from(this),Array.from(a)))}};function QE(e,t,a){for(let i=0;it[a])return 1}return e.length-t.length}function U5(e){return e.sort(JE)}function $5(e,t){let a;return cr(e,{...t,onEnter:(i,l)=>{if(t.predicate(i,l))return a=i,"stop"}}),a}function H5(e,t){const a=[];return cr(e,{onEnter:(i,l)=>{t.predicate(i,l)&&a.push(i)},getChildren:t.getChildren}),a}function PS(e,t){let a;return cr(e,{onEnter:(i,l)=>{if(t.predicate(i,l))return a=[...l],"stop"},getChildren:t.getChildren}),a}function B5(e,t){let a=t.initialResult;return cr(e,{...t,onEnter:(i,l)=>{a=t.nextResult(a,i,l)}}),a}function F5(e,t){return B5(e,{...t,initialResult:[],nextResult:(a,i,l)=>(a.push(...t.transform(i,l)),a)})}function W5(e,t){const{predicate:a,create:i,getChildren:l}=t,c=(d,h)=>{const p=l(d,h),b=[];p.forEach((C,O)=>{const w=[...h,O],T=c(C,w);T&&b.push(T)});const v=h.length===0,x=a(d,h),S=b.length>0;return v||x||S?i(d,b,h):null};return c(e,[])||i(e,[],[])}function G5(e,t){const a=[];let i=0;const l=new Map,c=new Map;return cr(e,{getChildren:t.getChildren,onEnter:(d,h)=>{l.has(d)||l.set(d,i++);const p=t.getChildren(d,h);p.forEach(C=>{c.has(C)||c.set(C,d),l.has(C)||l.set(C,i++)});const b=p.length>0?p.map(C=>l.get(C)):void 0,v=c.get(d),x=v?l.get(v):void 0,S=l.get(d);a.push({...d,_children:b,_parent:x,_index:S})}}),a}function q5(e,t){return{type:"insert",index:e,nodes:t}}function Y5(e){return{type:"remove",indexes:e}}function X0(){return{type:"replace"}}function ew(e){return[e.slice(0,-1),e[e.length-1]]}function tw(e,t,a=new Map){const[i,l]=ew(e);for(let d=i.length-1;d>=0;d--){const h=i.slice(0,d).join();a.get(h)?.type!=="remove"&&a.set(h,X0())}const c=a.get(i.join());return c?.type==="remove"?a.set(i.join(),{type:"removeThenInsert",removeIndexes:c.indexes,insertIndex:l,insertNodes:t}):a.set(i.join(),q5(l,t)),a}function nw(e){const t=new Map,a=new Map;for(const i of e){const l=i.slice(0,-1).join(),c=a.get(l)??[];c.push(i[i.length-1]),a.set(l,c.sort((d,h)=>d-h))}for(const i of e)for(let l=i.length-2;l>=0;l--){const c=i.slice(0,l).join();t.has(c)||t.set(c,X0())}for(const[i,l]of a)t.set(i,Y5(l));return t}function X5(e,t){const a=new Map,[i,l]=ew(e);for(let c=i.length-1;c>=0;c--){const d=i.slice(0,c).join();a.set(d,X0())}return a.set(i.join(),{type:"removeThenInsert",removeIndexes:[l],insertIndex:l,insertNodes:[t]}),a}function Sh(e,t,a){return K5(e,{...a,getChildren:(i,l)=>{const c=l.join();switch(t.get(c)?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return a.getChildren(i,l);default:return[]}},transform:(i,l,c)=>{const d=c.join(),h=t.get(d);switch(h?.type){case"remove":return a.create(i,l.filter((v,x)=>!h.indexes.includes(x)),c);case"removeThenInsert":const p=l.filter((v,x)=>!h.removeIndexes.includes(x)),b=h.removeIndexes.reduce((v,x)=>x{const c=[0,...l],d=c.join(),h=t.transform(i,a[d]??[],l),p=c.slice(0,-1).join(),b=a[p]??[];b.push(h),a[p]=b}}),a[""][0]}function Z5(e,t){const{nodes:a,at:i}=t;if(i.length===0)throw new Error("Can't insert nodes at the root");const l=tw(i,a);return Sh(e,l,t)}function Q5(e,t){if(t.at.length===0)return t.node;const a=X5(t.at,t.node);return Sh(e,a,t)}function J5(e,t){if(t.indexPaths.length===0)return e;for(const i of t.indexPaths)if(i.length===0)throw new Error("Can't remove the root node");const a=nw(t.indexPaths);return Sh(e,a,t)}function eI(e,t){if(t.indexPaths.length===0)return e;for(const c of t.indexPaths)if(c.length===0)throw new Error("Can't move the root node");if(t.to.length===0)throw new Error("Can't move nodes to the root");const a=P5(t.indexPaths),i=a.map(c=>QE(e,c,t)),l=tw(t.to,i,nw(a));return Sh(e,l,t)}function cr(e,t){const{onEnter:a,onLeave:i,getChildren:l}=t;let c=[],d=[{node:e}];const h=t.reuseIndexPath?()=>c:()=>c.slice();for(;d.length>0;){let p=d[d.length-1];if(p.state===void 0){const v=a?.(p.node,h());if(v==="stop")return;p.state=v==="skip"?-1:0}const b=p.children||l(p.node,h());if(p.children||(p.children=b),p.state!==-1){if(p.stateka(this.rootNode,a.rootNode)),he(this,"getNodeChildren",a=>this.options.nodeToChildren?.(a)??Ps.nodeToChildren(a)??[]),he(this,"resolveIndexPath",a=>typeof a=="string"?this.getIndexPath(a):a),he(this,"resolveNode",a=>{const i=this.resolveIndexPath(a);return i?this.at(i):void 0}),he(this,"getNodeChildrenCount",a=>this.options.nodeToChildrenCount?.(a)??Ps.nodeToChildrenCount(a)),he(this,"getNodeValue",a=>this.options.nodeToValue?.(a)??Ps.nodeToValue(a)),he(this,"getNodeDisabled",a=>this.options.isNodeDisabled?.(a)??Ps.isNodeDisabled(a)),he(this,"stringify",a=>{const i=this.findNode(a);return i?this.stringifyNode(i):null}),he(this,"stringifyNode",a=>this.options.nodeToString?.(a)??Ps.nodeToString(a)),he(this,"getFirstNode",(a=this.rootNode)=>{let i;return cr(a,{getChildren:this.getNodeChildren,onEnter:(l,c)=>{if(!i&&c.length>0&&!this.getNodeDisabled(l))return i=l,"stop"}}),i}),he(this,"getLastNode",(a=this.rootNode,i={})=>{let l;return cr(a,{getChildren:this.getNodeChildren,onEnter:(c,d)=>{if(!this.isSameNode(c,a)){if(i.skip?.({value:this.getNodeValue(c),node:c,indexPath:d}))return"skip";d.length>0&&!this.getNodeDisabled(c)&&(l=c)}}}),l}),he(this,"at",a=>QE(this.rootNode,a,{getChildren:this.getNodeChildren})),he(this,"findNode",(a,i=this.rootNode)=>$5(i,{getChildren:this.getNodeChildren,predicate:l=>this.getNodeValue(l)===a})),he(this,"findNodes",(a,i=this.rootNode)=>{const l=new Set(a.filter(c=>c!=null));return H5(i,{getChildren:this.getNodeChildren,predicate:c=>l.has(this.getNodeValue(c))})}),he(this,"sort",a=>a.reduce((i,l)=>{const c=this.getIndexPath(l);return c&&i.push({value:l,indexPath:c}),i},[]).sort((i,l)=>JE(i.indexPath,l.indexPath)).map(({value:i})=>i)),he(this,"getIndexPath",a=>PS(this.rootNode,{getChildren:this.getNodeChildren,predicate:i=>this.getNodeValue(i)===a})),he(this,"getValue",a=>{const i=this.at(a);return i?this.getNodeValue(i):void 0}),he(this,"getValuePath",a=>{if(!a)return[];const i=[];let l=[...a];for(;l.length>0;){const c=this.at(l);c&&i.unshift(this.getNodeValue(c)),l.pop()}return i}),he(this,"getDepth",a=>PS(this.rootNode,{getChildren:this.getNodeChildren,predicate:l=>this.getNodeValue(l)===a})?.length??0),he(this,"isSameNode",(a,i)=>this.getNodeValue(a)===this.getNodeValue(i)),he(this,"isRootNode",a=>this.isSameNode(a,this.rootNode)),he(this,"contains",(a,i)=>!a||!i?!1:i.slice(0,a.length).every((l,c)=>a[c]===i[c])),he(this,"getNextNode",(a,i={})=>{let l=!1,c;return cr(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(d,h)=>{if(this.isRootNode(d))return;const p=this.getNodeValue(d);if(i.skip?.({value:p,node:d,indexPath:h}))return p===a&&(l=!0),"skip";if(l&&!this.getNodeDisabled(d))return c=d,"stop";p===a&&(l=!0)}}),c}),he(this,"getPreviousNode",(a,i={})=>{let l,c=!1;return cr(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(d,h)=>{if(this.isRootNode(d))return;const p=this.getNodeValue(d);if(i.skip?.({value:p,node:d,indexPath:h}))return"skip";if(p===a)return c=!0,"stop";this.getNodeDisabled(d)||(l=d)}}),c?l:void 0}),he(this,"getParentNodes",a=>{const i=this.resolveIndexPath(a)?.slice();if(!i)return[];const l=[];for(;i.length>0;){i.pop();const c=this.at(i);c&&!this.isRootNode(c)&&l.unshift(c)}return l}),he(this,"getDescendantNodes",(a,i)=>{const l=this.resolveNode(a);if(!l)return[];const c=[];return cr(l,{getChildren:this.getNodeChildren,onEnter:(d,h)=>{h.length!==0&&(!i?.withBranch&&this.isBranchNode(d)||c.push(d))}}),c}),he(this,"getDescendantValues",(a,i)=>this.getDescendantNodes(a,i).map(c=>this.getNodeValue(c))),he(this,"getParentIndexPath",a=>a.slice(0,-1)),he(this,"getParentNode",a=>{const i=this.resolveIndexPath(a);return i?this.at(this.getParentIndexPath(i)):void 0}),he(this,"visit",a=>{const{skip:i,...l}=a;cr(this.rootNode,{...l,getChildren:this.getNodeChildren,onEnter:(c,d)=>{if(!this.isRootNode(c))return i?.({value:this.getNodeValue(c),node:c,indexPath:d})?"skip":l.onEnter?.(c,d)}})}),he(this,"getPreviousSibling",a=>{const i=this.getParentNode(a);if(!i)return;const l=this.getNodeChildren(i);let c=a[a.length-1];for(;--c>=0;){const d=l[c];if(!this.getNodeDisabled(d))return d}}),he(this,"getNextSibling",a=>{const i=this.getParentNode(a);if(!i)return;const l=this.getNodeChildren(i);let c=a[a.length-1];for(;++c{const i=this.getParentNode(a);return i?this.getNodeChildren(i):[]}),he(this,"getValues",(a=this.rootNode)=>F5(a,{getChildren:this.getNodeChildren,transform:l=>[this.getNodeValue(l)]}).slice(1)),he(this,"isValidDepth",(a,i)=>i==null?!0:typeof i=="function"?i(a.length):a.length===i),he(this,"isBranchNode",a=>this.getNodeChildren(a).length>0||this.getNodeChildrenCount(a)!=null),he(this,"getBranchValues",(a=this.rootNode,i={})=>{let l=[];return cr(a,{getChildren:this.getNodeChildren,onEnter:(c,d)=>{if(d.length===0)return;const h=this.getNodeValue(c);if(i.skip?.({value:h,node:c,indexPath:d}))return"skip";this.isBranchNode(c)&&this.isValidDepth(d,i.depth)&&l.push(this.getNodeValue(c))}}),l}),he(this,"flatten",(a=this.rootNode)=>G5(a,{getChildren:this.getNodeChildren})),he(this,"_create",(a,i)=>this.getNodeChildren(a).length>0||i.length>0?{...a,children:i}:{...a}),he(this,"_insert",(a,i,l)=>this.copy(Z5(a,{at:i,nodes:l,getChildren:this.getNodeChildren,create:this._create}))),he(this,"copy",a=>new rw({...this.options,rootNode:a})),he(this,"_replace",(a,i,l)=>this.copy(Q5(a,{at:i,node:l,getChildren:this.getNodeChildren,create:this._create}))),he(this,"_move",(a,i,l)=>this.copy(eI(a,{indexPaths:i,to:l,getChildren:this.getNodeChildren,create:this._create}))),he(this,"_remove",(a,i)=>this.copy(J5(a,{indexPaths:i,getChildren:this.getNodeChildren,create:this._create}))),he(this,"replace",(a,i)=>this._replace(this.rootNode,a,i)),he(this,"remove",a=>this._remove(this.rootNode,a)),he(this,"insertBefore",(a,i)=>this.getParentNode(a)?this._insert(this.rootNode,a,i):void 0),he(this,"insertAfter",(a,i)=>{if(!this.getParentNode(a))return;const c=[...a.slice(0,-1),a[a.length-1]+1];return this._insert(this.rootNode,c,i)}),he(this,"move",(a,i)=>this._move(this.rootNode,a,i)),he(this,"filter",a=>{const i=W5(this.rootNode,{predicate:a,getChildren:this.getNodeChildren,create:this._create});return this.copy(i)}),he(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},Ps={nodeToValue(e){return typeof e=="string"?e:Kl(e)&&So(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:Kl(e)&&So(e,"label")?e.label:Ps.nodeToValue(e)},isNodeDisabled(e){return Kl(e)&&So(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(Kl(e)&&So(e,"childrenCount"))return e.childrenCount}},iw=He("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");iw.build();var ow=e=>new dc(e);ow.empty=()=>new dc({items:[]});var tI=e=>e.ids?.control??`combobox:${e.id}:control`,nI=e=>e.ids?.input??`combobox:${e.id}:input`,aI=e=>e.ids?.content??`combobox:${e.id}:content`,rI=e=>e.ids?.positioner??`combobox:${e.id}:popper`,iI=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,oI=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,Yl=e=>e.getById(aI(e)),Cu=e=>e.getById(nI(e)),$S=e=>e.getById(rI(e)),HS=e=>e.getById(tI(e)),Pf=e=>e.getById(iI(e)),lI=e=>e.getById(oI(e)),au=(e,t)=>{if(t==null)return null;const a=`[role=option][data-value="${CSS.escape(t)}"]`;return hz(Yl(e),a)},BS=e=>{const t=Cu(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},sI=e=>{const t=Pf(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:cI,createMachine:uI,choose:dI}=N0(),{and:An,not:sr}=cI;uI({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],defaultInputValue:"",closeOnSelect:!e.multiple,allowCustomValue:!1,alwaysSubmitOnEnter:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){nE(t)},collection:ow.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"suggesting":"idle"},context({prop:e,bindable:t,getContext:a,getEvent:i}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:ka,hash(l){return l.join(",")},onChange(l){const c=a(),d=c.get("selectedItems"),h=e("collection"),p=l.map(b=>d.find(x=>h.getItemValue(x)===b)||h.find(b));c.set("selectedItems",p),e("onValueChange")?.({value:l,items:p})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(l){const c=e("collection").find(l);e("onHighlightChange")?.({highlightedValue:l,highlightedItem:c})}})),inputValue:t(()=>{let l=e("inputValue")||e("defaultInputValue");const c=e("value")||e("defaultValue");if(!l.trim()&&!e("multiple")){const d=e("collection").stringifyMany(c);l=yo(e("selectionBehavior"),{preserve:l||d,replace:d,clear:""})}return{defaultValue:l,value:e("inputValue"),onChange(d){const h=i(),p=(h.previousEvent||h).src;e("onInputValueChange")?.({inputValue:d,reason:p})}}}),highlightedItem:t(()=>{const l=e("highlightedValue");return{defaultValue:e("collection").find(l)}}),selectedItems:t(()=>{const l=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(l)}})}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:a,action:i,send:l}){a([()=>e.hash("value")],()=>{i(["syncSelectedItems"])}),a([()=>e.get("inputValue")],()=>{i(["syncInputValue"])}),a([()=>e.get("highlightedValue")],()=>{i(["syncHighlightedItem","autofillInputValue"])}),a([()=>t("open")],()=>{i(["toggleVisibility"])}),a([()=>t("collection").toString()],()=>{l({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:dI([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:An("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:An("isCustomValue",sr("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:An("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:An("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:An("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:An("isOpenControlled","isCustomValue",sr("hasHighlightedItem"),sr("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:An("isCustomValue",sr("hasHighlightedItem"),sr("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:An("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:An("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:An("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:An("isOpenControlled","isCustomValue",sr("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:An("isCustomValue",sr("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:An("isHighlightedItemRemoved","hasCollectionItems","autoHighlight"),actions:["clearHighlightedValue","highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{guard:"autoHighlight",actions:["highlightFirstItem"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:An("isOpenControlled","isCustomValue",sr("hasHighlightedItem"),sr("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:An("isCustomValue",sr("hasHighlightedItem"),sr("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:An("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:An("isOpenControlled","isCustomValue",sr("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:An("isCustomValue",sr("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:An("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{const a=e("openOnChange");return jj(a)?a:!!a?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>{const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null?!0:!!t},isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue")),hasCollectionItems:({prop:e})=>e("collection").size>0},effects:{trackDismissableLayer({send:e,prop:t,scope:a}){return t("disableLayer")?void 0:Hu(()=>Yl(a),{type:"listbox",defer:!0,exclude:()=>[Cu(a),Pf(a),lI(a)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(l){l.preventDefault(),l.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},trackPlacement({context:e,prop:t,scope:a}){const i=()=>HS(a)||Pf(a),l=()=>$S(a);return e.set("currentPlacement",t("positioning").placement),oi(i,l,{...t("positioning"),defer:!0,onComplete(c){e.set("currentPlacement",c.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:a,event:i}){const l=Cu(a);let c=[];const d=b=>{const v=i.current().type.includes("POINTER"),x=e.get("highlightedValue");if(v||!x)return;const S=Yl(a),C=t("scrollToIndexFn");if(C){const T=t("collection").indexOf(x);C({index:T,immediate:b,getElement:()=>au(a,x)});return}const O=au(a,x),w=Ye(()=>{Iu(O,{rootEl:S,block:"nearest"})});c.push(w)},h=Ye(()=>d(!0));c.push(h);const p=Uu(l,{attributes:["aria-activedescendant"],callback:()=>d(!1)});return c.push(p),()=>{c.forEach(b=>b())}}},actions:{reposition({context:e,prop:t,scope:a,event:i}){oi(()=>HS(a),()=>$S(a),{...t("positioning"),...i.options,defer:!0,listeners:!1,onComplete(d){e.set("currentPlacement",d.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){const{context:t,prop:a}=e,i=a("collection"),l=t.get("highlightedValue");if(!l||!i.has(l))return;const c=a("multiple")?Zs(t.get("value"),l):[l];a("onSelect")?.({value:c,itemValue:l}),t.set("value",c);const d=yo(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:i.stringifyMany(c),clear:""});t.set("inputValue",d)},scrollToHighlightedItem({context:e,prop:t,scope:a}){tE(()=>{const i=e.get("highlightedValue");if(i==null)return;const l=au(a,i),c=Yl(a),d=t("scrollToIndexFn");if(d){const h=t("collection").indexOf(i);d({index:h,immediate:!0,getElement:()=>au(a,i)});return}Iu(l,{rootEl:c,block:"nearest"})})},selectItem(e){const{context:t,event:a,flush:i,prop:l}=e;a.value!=null&&i(()=>{const c=l("multiple")?Zs(t.get("value"),a.value):[a.value];l("onSelect")?.({value:c,itemValue:a.value}),t.set("value",c);const d=yo(l("selectionBehavior"),{preserve:t.get("inputValue"),replace:l("collection").stringifyMany(c),clear:""});t.set("inputValue",d)})},clearItem(e){const{context:t,event:a,flush:i,prop:l}=e;a.value!=null&&i(()=>{const c=Zl(t.get("value"),a.value);t.set("value",c);const d=yo(l("selectionBehavior"),{preserve:t.get("inputValue"),replace:l("collection").stringifyMany(c),clear:""});t.set("inputValue",d)})},setInitialFocus({scope:e}){Ye(()=>{BS(e)})},setFinalFocus({scope:e}){Ye(()=>{Pf(e)?.dataset.focusable==null?BS(e):sI(e)})},syncInputValue({context:e,scope:t,event:a}){const i=Cu(t);i&&(i.value=e.get("inputValue"),queueMicrotask(()=>{a.current().type!=="INPUT.CHANGE"&&rT(i)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:a}){const i=t("selectionBehavior"),l=yo(i,{replace:a("hasSelectedItems")?a("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",l)},setValue(e){const{context:t,flush:a,event:i,prop:l}=e;a(()=>{t.set("value",i.value);const c=yo(l("selectionBehavior"),{preserve:t.get("inputValue"),replace:l("collection").stringifyMany(i.value),clear:""});t.set("inputValue",c)})},clearSelectedItems(e){const{context:t,flush:a,prop:i}=e;a(()=>{t.set("value",[]);const l=yo(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany([]),clear:""});t.set("inputValue",l)})},scrollContentToTop({prop:e,scope:t}){const a=e("scrollToIndexFn");if(a){const i=e("collection").firstValue;a({index:0,immediate:!0,getElement:()=>au(t,i)})}else{const i=Yl(t);if(!i)return;i.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:a}){const i=FS(t);e("onOpenChange")?.({open:!0,reason:i,value:a.get("value")})},invokeOnClose({prop:e,event:t,context:a}){const i=FS(t);e("onOpenChange")?.({open:!1,reason:i,value:a.get("value")})},highlightFirstItem({context:e,prop:t,scope:a}){(Yl(a)?queueMicrotask:Ye)(()=>{const l=t("collection").firstValue;l&&e.set("highlightedValue",l)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:a}){(Yl(a)?queueMicrotask:Ye)(()=>{const l=t("collection").lastValue;l&&e.set("highlightedValue",l)})},highlightNextItem({context:e,prop:t}){let a=null;const i=e.get("highlightedValue"),l=t("collection");i?(a=l.getNextValue(i),!a&&t("loopFocus")&&(a=l.firstValue)):a=l.firstValue,a&&e.set("highlightedValue",a)},highlightPrevItem({context:e,prop:t}){let a=null;const i=e.get("highlightedValue"),l=t("collection");i?(a=l.getPreviousValue(i),!a&&t("loopFocus")&&(a=l.lastValue)):a=l.lastValue,a&&e.set("highlightedValue",a)},highlightFirstSelectedItem({context:e,prop:t}){Ye(()=>{const[a]=t("collection").sort(e.get("value"));a&&e.set("highlightedValue",a)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:a}){Ye(()=>{let i=null;a("hasSelectedItems")?i=t("collection").sort(e.get("value"))[0]:i=t("collection").firstValue,i&&e.set("highlightedValue",i)})},highlightLastOrSelectedItem({context:e,prop:t,computed:a}){Ye(()=>{const i=t("collection");let l=null;a("hasSelectedItems")?l=i.sort(e.get("value"))[0]:l=i.lastValue,l&&e.set("highlightedValue",l)})},autofillInputValue({context:e,computed:t,prop:a,event:i,scope:l}){const c=Cu(l),d=a("collection");if(!t("autoComplete")||!c||!i.keypress)return;const h=d.stringify(e.get("highlightedValue"));Ye(()=>{c.value=h||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:a}=e,i=a("collection"),l=t.get("value"),c=l.map(h=>t.get("selectedItems").find(b=>i.getItemValue(b)===h)||i.find(h));t.set("selectedItems",c);const d=yo(a("selectionBehavior"),{preserve:t.get("inputValue"),replace:i.stringifyMany(l),clear:""});t.set("inputValue",d)})},syncHighlightedItem({context:e,prop:t}){const a=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",a)},toggleVisibility({event:e,send:t,prop:a}){t({type:a("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function FS(e){return(e.previousEvent||e).src}Me()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value","alwaysSubmitOnEnter"]);Me()(["htmlFor"]);Me()(["id"]);Me()(["item","persistFocus"]);const fI=iw.extendWith("empty");var K0=He("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger");K0.build();Me()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);var lw=He("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");lw.build();Me()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const sw=m.forwardRef((e,t)=>{const a=Bu(),i=On(a?.getInputProps(),e);return u.jsx(Nn.input,{...i,ref:t})});sw.displayName="FieldInput";const cw=He("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");cw.build();const uw=m.forwardRef((e,t)=>{const a=Bu(),i=On(a?.getSelectProps(),e);return u.jsx(Nn.select,{...i,ref:t})});uw.displayName="FieldSelect";function hI(e){if(!e)return;const t=YC(e);return"box-sizing:"+t.boxSizing+";border-left:"+t.borderLeftWidth+" solid red;border-right:"+t.borderRightWidth+" solid red;font-family:"+t.fontFamily+";font-feature-settings:"+t.fontFeatureSettings+";font-kerning:"+t.fontKerning+";font-size:"+t.fontSize+";font-stretch:"+t.fontStretch+";font-style:"+t.fontStyle+";font-variant:"+t.fontVariant+";font-variant-caps:"+t.fontVariantCaps+";font-variant-ligatures:"+t.fontVariantLigatures+";font-variant-numeric:"+t.fontVariantNumeric+";font-weight:"+t.fontWeight+";letter-spacing:"+t.letterSpacing+";margin-left:"+t.marginLeft+";margin-right:"+t.marginRight+";padding-left:"+t.paddingLeft+";padding-right:"+t.paddingRight+";text-indent:"+t.textIndent+";text-transform:"+t.textTransform}function gI(e){var t=e.createElement("div");return t.id="ghost",t.style.cssText="display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;",e.body.appendChild(t),t}function pI(e){if(!e)return;const t=li(e),a=xn(e),i=gI(t),l=hI(e);l&&(i.style.cssText+=l);function c(){a.requestAnimationFrame(()=>{i.innerHTML=e.value;const d=a.getComputedStyle(i);e?.style.setProperty("width",d.width)})}return c(),e?.addEventListener("input",c),e?.addEventListener("change",c),()=>{t.body.removeChild(i),e?.removeEventListener("input",c),e?.removeEventListener("change",c)}}const dw=He("fieldset").parts("root","errorText","helperText","legend");dw.build();var fw=He("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");fw.build();Me()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]);Me()(["file","type"]);var hw=He("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");hw.build();var mI=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,bI=e=>e.ids?.content??`hover-card:${e.id}:content`,vI=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,im=e=>e.getById(mI(e)),xI=e=>e.getById(bI(e)),WS=e=>e.getById(vI(e)),{not:gf,and:GS}=Di();GS("isOpenControlled",gf("isPointer")),gf("isPointer"),GS("isOpenControlled",gf("isPointer")),gf("isPointer");Me()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var gw=He("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","nodeRenameInput","root","tree");gw.build();var pw=e=>new aw(e);pw.empty=()=>new aw({rootNode:{children:[]}});var mw=(e,t)=>e.ids?.node?.(t)??`tree:${e.id}:node:${t}`,ta=(e,t)=>{t!=null&&e.getById(mw(e,t))?.focus()},yI=(e,t)=>`tree:${e.id}:rename-input:${t}`,qS=(e,t)=>e.getById(yI(e,t));function SI(e,t,a){const i=e.getDescendantValues(t),l=i.every(c=>a.includes(c));return ol(l?Zl(a,...i):Xl(a,...i))}function pf(e,t){const{context:a,prop:i,refs:l}=e;if(!i("loadChildren")){a.set("expandedValue",w=>ol(Xl(w,...t)));return}const c=a.get("loadingStatus"),[d,h]=nS(t,w=>c[w]==="loaded");if(d.length>0&&a.set("expandedValue",w=>ol(Xl(w,...d))),h.length===0)return;const p=i("collection"),[b,v]=nS(h,w=>{const T=p.findNode(w);return p.getNodeChildren(T).length>0});if(b.length>0&&a.set("expandedValue",w=>ol(Xl(w,...b))),v.length===0)return;a.set("loadingStatus",w=>({...w,...v.reduce((T,A)=>({...T,[A]:"loading"}),{})}));const x=v.map(w=>{const T=p.getIndexPath(w),A=p.getValuePath(T),_=p.findNode(w);return{id:w,indexPath:T,valuePath:A,node:_}}),S=l.get("pendingAborts"),C=i("loadChildren");BC(C,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const O=x.map(({id:w,indexPath:T,valuePath:A,node:_})=>{const I=S.get(w);I&&(I.abort(),S.delete(w));const M=new AbortController;return S.set(w,M),C({valuePath:A,indexPath:T,node:_,signal:M.signal})});Promise.allSettled(O).then(w=>{const T=[],A=[],_=a.get("loadingStatus");let I=i("collection");w.forEach((M,R)=>{const{id:V,indexPath:P,node:F,valuePath:B}=x[R];M.status==="fulfilled"?(_[V]="loaded",T.push(V),I=I.replace(P,{...F,children:M.value})):(S.delete(V),Reflect.deleteProperty(_,V),A.push({node:F,error:M.reason,indexPath:P,valuePath:B}))}),a.set("loadingStatus",_),T.length&&(a.set("expandedValue",M=>ol(Xl(M,...T))),i("onLoadChildrenComplete")?.({collection:I})),A.length&&i("onLoadChildrenError")?.({nodes:A})})}function al(e){const{prop:t,context:a}=e;return function({indexPath:l}){return t("collection").getValuePath(l).slice(0,-1).some(d=>!a.get("expandedValue").includes(d))}}var{and:Oi}=Di();Oi("isMultipleSelection","moveFocus"),Oi("isShiftKey","isMultipleSelection"),Oi("isShiftKey","isMultipleSelection"),Oi("isBranchFocused","isBranchExpanded"),Oi("isShiftKey","isMultipleSelection"),Oi("isShiftKey","isMultipleSelection"),Oi("isCtrlKey","isMultipleSelection"),Oi("isShiftKey","isMultipleSelection"),Oi("isCtrlKey","isMultipleSelection"),Oi("isShiftKey","isMultipleSelection");function $l(e,t){const{prop:a,scope:i,computed:l}=e,c=a("scrollToIndexFn");if(!c)return!1;const d=a("collection"),h=l("visibleNodes");for(let p=0;pi.getById(mw(i,t))}),!0}return!1}Me()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren","canRename","onRenameStart","onBeforeRename","onRenameComplete","scrollToIndexFn"]);Me()(["node","indexPath"]);var bw=He("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");bw.build();var vw=e=>new dc(e);vw.empty=()=>new dc({items:[]});var CI=e=>e.ids?.content??`select:${e.id}:content`,EI=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,YS=e=>e.getById(CI(e)),XS=(e,t)=>e.getById(EI(e,t)),{guards:wI,createMachine:kI}=N0(),{or:RI}=wI;kI({props({props:e}){return{loopFocus:!1,composite:!0,defaultValue:[],multiple:!1,typeahead:!0,collection:vw.empty(),orientation:"vertical",selectionMode:"single",...e}},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:ka,onChange(a){const i=e("collection").findMany(a);return e("onValueChange")?.({value:a,items:i})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),sync:!0,onChange(a){e("onHighlightChange")?.({highlightedValue:a,highlightedItem:e("collection").find(a),highlightedIndex:e("collection").indexOf(a)})}})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{const a=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(a)}}),focused:t(()=>({sync:!0,defaultValue:!1}))}},refs(){return{typeahead:{...Js.defaultOptions},focusVisible:!1,inputState:{autoHighlight:!1,focused:!1}}},computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>e.get("typeahead").keysSoFar!=="",isInteractive:({prop:e})=>!e("disabled"),selection:({context:e,prop:t})=>{const a=new D5(e.get("value"));return a.selectionMode=t("selectionMode"),a.deselectable=!!t("deselectable"),a},multiple:({prop:e})=>e("selectionMode")==="multiple"||e("selectionMode")==="extended",valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState(){return"idle"},watch({context:e,prop:t,track:a,action:i}){a([()=>e.get("value").toString()],()=>{i(["syncSelectedItems"])}),a([()=>e.get("highlightedValue")],()=>{i(["syncHighlightedItem"])}),a([()=>t("collection").toString()],()=>{i(["syncHighlightedValue"])})},effects:["trackFocusVisible"],on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]}},states:{idle:{effects:["scrollToHighlightedItem"],on:{"INPUT.FOCUS":{actions:["setFocused","setInputState"]},"CONTENT.FOCUS":[{guard:RI("hasSelectedValue","hasHighlightedValue"),actions:["setFocused"]},{actions:["setFocused","setDefaultHighlightedValue"]}],"CONTENT.BLUR":{actions:["clearFocused","clearInputState"]},"ITEM.CLICK":{actions:["setHighlightedItem","selectHighlightedItem"]},"CONTENT.TYPEAHEAD":{actions:["setFocused","highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},NAVIGATE:{actions:["setFocused","setHighlightedItem","selectWithKeyboard"]}}}},implementations:{guards:{hasSelectedValue:({context:e})=>e.get("value").length>0,hasHighlightedValue:({context:e})=>e.get("highlightedValue")!=null},effects:{trackFocusVisible:({scope:e,refs:t})=>Y0({root:e.getRootNode?.(),onChange(a){t.set("focusVisible",a.isFocusVisible)}}),scrollToHighlightedItem({context:e,prop:t,scope:a}){const i=c=>{const d=e.get("highlightedValue");if(d==null||x5()!=="keyboard")return;const p=YS(a),b=t("scrollToIndexFn");if(b){const x=t("collection").indexOf(d);b?.({index:x,immediate:c,getElement(){return XS(a,d)}});return}const v=XS(a,d);Iu(v,{rootEl:p,block:"nearest"})};return Ye(()=>i(!0)),Uu(()=>YS(a),{defer:!0,attributes:["data-activedescendant"],callback(){i(!1)}})}},actions:{selectHighlightedItem({context:e,prop:t,event:a,computed:i}){const l=a.value??e.get("highlightedValue"),c=t("collection");if(l==null||!c.has(l))return;const d=i("selection");if(a.shiftKey&&i("multiple")&&a.anchorValue){const h=d.extendSelection(c,a.anchorValue,l);ru(d,h,t("onSelect")),e.set("value",Array.from(h))}else{const h=d.select(c,l,a.metaKey);ru(d,h,t("onSelect")),e.set("value",Array.from(h))}},selectWithKeyboard({context:e,prop:t,event:a,computed:i}){const l=i("selection"),c=t("collection");if(a.shiftKey&&i("multiple")&&a.anchorValue){const d=l.extendSelection(c,a.anchorValue,a.value);ru(l,d,t("onSelect")),e.set("value",Array.from(d));return}if(t("selectOnHighlight")){const d=l.replaceSelection(c,a.value);ru(l,d,t("onSelect")),e.set("value",Array.from(d))}},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:a,refs:i}){const l=t("collection").search(a.key,{state:i.get("typeahead"),currentValue:e.get("highlightedValue")});l!=null&&e.set("highlightedValue",l)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:a,computed:i}){const l=t("collection"),c=i("selection"),d=c.select(l,a.value);ru(c,d,t("onSelect")),e.set("value",Array.from(d))},clearItem({context:e,event:t,computed:a}){const l=a("selection").deselect(t.value);e.set("value",Array.from(l))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},syncSelectedItems({context:e,prop:t}){const a=t("collection"),i=e.get("selectedItems"),c=e.get("value").map(d=>i.find(p=>a.getItemValue(p)===d)||a.find(d));e.set("selectedItems",c)},syncHighlightedItem({context:e,prop:t}){const a=t("collection"),i=e.get("highlightedValue"),l=i?a.find(i):null;e.set("highlightedItem",l)},syncHighlightedValue({context:e,prop:t,refs:a}){const i=t("collection"),l=e.get("highlightedValue"),{autoHighlight:c}=a.get("inputState");if(c){queueMicrotask(()=>{e.set("highlightedValue",t("collection").firstValue??null)});return}l!=null&&!i.has(l)&&queueMicrotask(()=>{e.set("highlightedValue",null)})},setFocused({context:e}){e.set("focused",!0)},setDefaultHighlightedValue({context:e,prop:t}){const i=t("collection").firstValue;i!=null&&e.set("highlightedValue",i)},clearFocused({context:e}){e.set("focused",!1)},setInputState({refs:e,event:t}){e.set("inputState",{autoHighlight:!!t.autoHighlight,focused:!0})},clearInputState({refs:e}){e.set("inputState",{autoHighlight:!1,focused:!1})}}}});var OI=(e,t)=>{const a=new Set(e);for(const i of t)a.delete(i);return a};function ru(e,t,a){const i=OI(t,e);for(const l of i)a?.({value:l})}Me()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]);Me()(["item","highlightOnHover"]);Me()(["id"]);Me()(["htmlFor"]);const jI=bw.extendWith("empty");var xw=He("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");xw.build();var yw=e=>e.ids?.trigger??`menu:${e.id}:trigger`,TI=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,Sw=e=>e.ids?.content??`menu:${e.id}:content`,zI=e=>e.ids?.positioner??`menu:${e.id}:popper`,Gm=(e,t)=>`${e.id}/${t}`,Hl=e=>e?.dataset.value??null,il=e=>e.getById(Sw(e)),KS=e=>e.getById(zI(e)),mf=e=>e.getById(yw(e)),_I=(e,t)=>t?e.getById(Gm(e,t)):null,om=e=>e.getById(TI(e)),Fu=e=>{const a=`[role^="menuitem"][data-ownedby=${CSS.escape(Sw(e))}]:not([data-disabled])`;return Ql(il(e),a)},AI=e=>qs(Fu(e)),II=e=>lh(Fu(e)),Z0=(e,t)=>t?e.id===t||e.dataset.value===t:!1,NI=(e,t)=>{const a=Fu(e),i=a.findIndex(l=>Z0(l,t.value));return wj(a,i,{loop:t.loop??t.loopFocus})},VI=(e,t)=>{const a=Fu(e),i=a.findIndex(l=>Z0(l,t.value));return Rj(a,i,{loop:t.loop??t.loopFocus})},LI=(e,t)=>{const a=Fu(e),i=a.find(l=>Z0(l,t.value));return Js(a,{state:t.typeaheadState,key:t.key,activeId:i?.id??null})},MI=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("data-controls"),DI="menu:select";function PI(e,t){if(!e)return;const a=xn(e),i=new a.CustomEvent(DI,{detail:{value:t}});e.dispatchEvent(i)}var{not:Ir,and:Vs,or:UI}=Di();Ir("isSubmenu"),UI("isOpenAutoFocusEvent","isArrowDownEvent"),Vs(Ir("isTriggerItem"),"isOpenControlled"),Ir("isTriggerItem"),Vs("isSubmenu","isOpenControlled"),Ir("isPointerSuspended"),Vs(Ir("isPointerSuspended"),Ir("isTriggerItem")),Vs(Ir("isTriggerItemHighlighted"),Ir("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),Vs(Ir("isTriggerItemHighlighted"),Ir("isHighlightedItemEditable"),"closeOnSelect"),Vs(Ir("isTriggerItemHighlighted"),Ir("isHighlightedItemEditable"));function ZS(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function $I(e,t){return e?d5(e,t):!1}function HI(e,t,a){const i=Object.keys(e).length>0;if(!t)return null;if(!i)return Gm(a,t);for(const l in e){const c=e[l],d=yw(c.scope);if(d===t)return d}return Gm(a,t)}Me()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]);Me()(["closeOnSelect","disabled","value","valueText"]);Me()(["htmlFor"]);Me()(["id"]);Me()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let lm=new Map,qm=!1;try{qm=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let eh=!1;try{eh=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Cw={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class BI{format(t){let a="";if(!qm&&this.options.signDisplay!=null?a=WI(this.numberFormatter,this.options.signDisplay,t):a=this.numberFormatter.format(t),this.options.style==="unit"&&!eh){var i;let{unit:l,unitDisplay:c="short",locale:d}=this.resolvedOptions();if(!l)return a;let h=(i=Cw[l])===null||i===void 0?void 0:i[c];a+=h[d]||h.default}return a}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,a){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,a);if(a= start date");return`${this.format(t)} – ${this.format(a)}`}formatRangeToParts(t,a){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,a);if(a= start date");let i=this.numberFormatter.formatToParts(t),l=this.numberFormatter.formatToParts(a);return[...i.map(c=>({...c,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...l.map(c=>({...c,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!qm&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!eh&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,a={}){this.numberFormatter=FI(t,a),this.options=a}}function FI(e,t={}){let{numberingSystem:a}=t;if(a&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${a}`),t.style==="unit"&&!eh){var i;let{unit:d,unitDisplay:h="short"}=t;if(!d)throw new Error('unit option must be provided with style: "unit"');if(!(!((i=Cw[d])===null||i===void 0)&&i[h]))throw new Error(`Unsupported unit ${d} with unitDisplay = ${h}`);t={...t,style:"decimal"}}let l=e+(t?Object.entries(t).sort((d,h)=>d[0]0||Object.is(a,0):t==="exceptZero"&&(Object.is(a,-0)||Object.is(a,0)?a=Math.abs(a):i=a>0),i){let l=e.format(-a),c=e.format(a),d=l.replace(c,"").replace(/\u200e|\u061C/,"");return[...d].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),l.replace(c,"!!!").replace(d,"+").replace("!!!",c)}else return e.format(a)}}const GI=new RegExp("^.*\\(.*\\).*$"),qI=["latn","arab","hanidec","deva","beng","fullwide"];class Ew{parse(t){return sm(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,a,i){return sm(this.locale,this.options,t).isValidPartialNumber(t,a,i)}getNumberingSystem(t){return sm(this.locale,this.options,t).options.numberingSystem}constructor(t,a={}){this.locale=t,this.options=a}}const QS=new Map;function sm(e,t,a){let i=JS(e,t);if(!e.includes("-nu-")&&!i.isValidPartialNumber(a)){for(let l of qI)if(l!==i.options.numberingSystem){let c=JS(e+(e.includes("-u-")?"-nu-":"-u-nu-")+l,t);if(c.isValidPartialNumber(a))return c}}return i}function JS(e,t){let a=e+(t?Object.entries(t).sort((l,c)=>l[0]-1&&(a=`-${a}`)}let i=a?+a:NaN;if(isNaN(i))return NaN;if(this.options.style==="percent"){var l,c;let d={...this.options,style:"decimal",minimumFractionDigits:Math.min(((l=this.options.minimumFractionDigits)!==null&&l!==void 0?l:0)+2,20),maximumFractionDigits:Math.min(((c=this.options.maximumFractionDigits)!==null&&c!==void 0?c:0)+2,20)};return new Ew(this.locale,d).parse(new BI(this.locale,d).format(i))}return this.options.currencySign==="accounting"&&GI.test(t)&&(i=-1*i),i}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=Ls(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&(t=Ls(t,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&(t=Ls(t," ",this.symbols.group),t=Ls(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,a=-1/0,i=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&a<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&i>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=Ls(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,a={}){this.locale=t,a.roundingIncrement!==1&&a.roundingIncrement!=null&&(a.maximumFractionDigits==null&&a.minimumFractionDigits==null?(a.maximumFractionDigits=0,a.minimumFractionDigits=0):a.maximumFractionDigits==null?a.maximumFractionDigits=a.minimumFractionDigits:a.minimumFractionDigits==null&&(a.minimumFractionDigits=a.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,a),this.options=this.formatter.resolvedOptions(),this.symbols=KI(t,this.formatter,this.options,a);var i,l;this.options.style==="percent"&&(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)>18||((l=this.options.maximumFractionDigits)!==null&&l!==void 0?l:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const e1=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),XI=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function KI(e,t,a,i){var l,c,d,h;let p=new Intl.NumberFormat(e,{...a,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),b=p.formatToParts(-10000.111),v=p.formatToParts(10000.111),x=XI.map(W=>p.formatToParts(W));var S;let C=(S=(l=b.find(W=>W.type==="minusSign"))===null||l===void 0?void 0:l.value)!==null&&S!==void 0?S:"-",O=(c=v.find(W=>W.type==="plusSign"))===null||c===void 0?void 0:c.value;!O&&(i?.signDisplay==="exceptZero"||i?.signDisplay==="always")&&(O="+");let T=(d=new Intl.NumberFormat(e,{...a,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(W=>W.type==="decimal"))===null||d===void 0?void 0:d.value,A=(h=b.find(W=>W.type==="group"))===null||h===void 0?void 0:h.value,_=b.filter(W=>!e1.has(W.type)).map(W=>t1(W.value)),I=x.flatMap(W=>W.filter(Y=>!e1.has(Y.type)).map(Y=>t1(Y.value))),M=[...new Set([..._,...I])].sort((W,Y)=>Y.length-W.length),R=M.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${M.join("|")}|[\\p{White_Space}]`,"gu"),V=[...new Intl.NumberFormat(a.locale,{useGrouping:!1}).format(9876543210)].reverse(),P=new Map(V.map((W,Y)=>[W,Y])),F=new RegExp(`[${V.join("")}]`,"g");return{minusSign:C,plusSign:O,decimal:T,group:A,literals:R,numeral:F,index:W=>String(P.get(W))}}function Ls(e,t,a){return e.replaceAll?e.replaceAll(t,a):e.split(t).join(a)}function t1(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var ww=He("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");ww.build();var ZI=e=>e.ids?.input??`number-input:${e.id}:input`,QI=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,JI=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,kw=e=>`number-input:${e.id}:cursor`,bf=e=>e.getById(ZI(e)),eN=e=>e.getById(QI(e)),tN=e=>e.getById(JI(e)),Rw=e=>e.getDoc().getElementById(kw(e)),nN=(e,t)=>{let a=null;return t==="increment"&&(a=eN(e)),t==="decrement"&&(a=tN(e)),a},aN=(e,t)=>{if(!KC())return oN(e,t),()=>{Rw(e)?.remove()}},rN=e=>{const t=e.getDoc(),a=t.documentElement,i=t.body;return i.style.pointerEvents="none",a.style.userSelect="none",a.style.cursor="ew-resize",()=>{i.style.pointerEvents="",a.style.userSelect="",a.style.cursor="",a.style.length||a.removeAttribute("style"),i.style.length||i.removeAttribute("style")}},iN=(e,t)=>{const{point:a,isRtl:i,event:l}=t,c=e.getWin(),d=Kp(l.movementX,c.devicePixelRatio),h=Kp(l.movementY,c.devicePixelRatio);let p=d>0?"increment":d<0?"decrement":null;i&&p==="increment"&&(p="decrement"),i&&p==="decrement"&&(p="increment");const b={x:a.x+d,y:a.y+h},v=c.innerWidth,x=Kp(7.5,c.devicePixelRatio);return b.x=Hj(b.x+x,v)-x,{hint:p,point:b}},oN=(e,t)=>{const a=e.getDoc(),i=a.createElement("div");i.className="scrubber--cursor",i.id=kw(e),Object.assign(i.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:oT,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),i.innerHTML=` + + + + + + `,a.body.appendChild(i)};function lN(e,t){if(!(!e||!t.isActiveElement(e)))try{const{selectionStart:a,selectionEnd:i,value:l}=e;return a==null||i==null?void 0:{start:a,end:i,value:l}}catch{return}}function sN(e,t,a){if(!(!e||!a.isActiveElement(e))){if(!t){const i=e.value.length;e.setSelectionRange(i,i);return}try{const i=e.value,{start:l,end:c,value:d}=t;if(i===d){e.setSelectionRange(l,c);return}const h=n1(d,i,l),p=l===c?h:n1(d,i,c),b=Math.max(0,Math.min(h,i.length)),v=Math.max(b,Math.min(p,i.length));e.setSelectionRange(b,v)}catch{const i=e.value.length;e.setSelectionRange(i,i)}}}function n1(e,t,a){const i=e.slice(0,a),l=e.slice(a);let c=0;const d=Math.min(i.length,t.length);for(let b=0;b=i.length)return c;if(h>=l.length)return t.length-h;if(c>0)return c;if(h>0)return t.length-h;if(e.length>0){const b=a/e.length;return Math.round(b*t.length)}return t.length}var cN=(e,t={})=>new Intl.NumberFormat(e,t),uN=(e,t={})=>new Ew(e,t),cm=(e,t)=>{const{prop:a,computed:i}=t;return a("formatOptions")?e===""?Number.NaN:i("parser").parse(e):parseFloat(e)},Bl=(e,t)=>{const{prop:a,computed:i}=t;return Number.isNaN(e)?"":a("formatOptions")?i("formatter").format(e):e.toString()},dN=(e,t)=>{let a=e!==void 0&&!Number.isNaN(e)?e:1;return t?.style==="percent"&&(e===void 0||Number.isNaN(e))&&(a=.01),a},{choose:fN,guards:hN,createMachine:gN}=N0(),{not:a1,and:r1}=hN;gN({props({props:e}){const t=dN(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:a}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(i){const l=a(),c=cm(i,{computed:l,prop:e});e("onValueChange")?.({value:i,valueAsNumber:c})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(i){return i?`x:${i.x}, y:${i.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:a})=>cm(e.get("value"),{computed:t,prop:a}),formattedValue:({computed:e,prop:t})=>Bl(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>Gj(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>Wj(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!PC(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>e("translations").valueText?.(t.get("value")),formatter:Dm(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>cN(e,t)),parser:Dm(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>uN(e,t))},watch({track:e,action:t,context:a,computed:i,prop:l}){e([()=>a.get("value"),()=>l("locale"),()=>JSON.stringify(l("formatOptions"))],()=>{t(["syncInputElement"])}),e([()=>i("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>a.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:r1("clampValueOnBlur",a1("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]},{guard:a1("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid","invokeOnValueCommit"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:fN([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:r1("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){const t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){const t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){const a=bf(t);return sc(a,{onFieldsetDisabledChange(i){e.set("fieldsetDisabled",i)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const a=e.get("scrubberCursorPoint");return aN(t,a)},preventTextSelection({scope:e}){return rN(e)},trackButtonDisabled({context:e,scope:t,send:a}){const i=e.get("hint"),l=nN(t,i);return Uu(l,{attributes:["disabled"],callback(){a({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:a}){const i=bf(e);if(!i||!e.isActiveElement(i)||!a("allowMouseWheel"))return;function l(c){c.preventDefault();const d=Math.sign(c.deltaY)*-1;d===1?t({type:"VALUE.INCREMENT"}):d===-1&&t({type:"VALUE.DECREMENT"})}return rn(i,"wheel",l,{passive:!1})},activatePointerLock({scope:e}){if(!KC())return cz(e.getDoc())},trackMousemove({scope:e,send:t,context:a,computed:i}){const l=e.getDoc();function c(h){const p=a.get("scrubberCursorPoint"),b=i("isRtl"),v=iN(e,{point:p,isRtl:b,event:h});v.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:v.hint,point:v.point})}function d(){t({type:"SCRUBBER.POINTER_UP"})}return zu(rn(l,"mousemove",c,!1),rn(l,"mouseup",d,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const a=bf(e);e.isActiveElement(a)||Ye(()=>a?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:a,computed:i}){let l=Kj(i("valueAsNumber"),t.step??a("step"));a("allowOverflow")||(l=Bn(l,a("min"),a("max"))),e.set("value",Bl(l,{computed:i,prop:a}))},decrement({context:e,event:t,prop:a,computed:i}){let l=Zj(i("valueAsNumber"),t.step??a("step"));a("allowOverflow")||(l=Bn(l,a("min"),a("max"))),e.set("value",Bl(l,{computed:i,prop:a}))},setClampedValue({context:e,prop:t,computed:a}){const i=Bn(a("valueAsNumber"),t("min"),t("max"));e.set("value",Bl(i,{computed:a,prop:t}))},setRawValue({context:e,event:t,prop:a,computed:i}){let l=cm(t.value,{computed:i,prop:a});a("allowOverflow")||(l=Bn(l,a("min"),a("max"))),e.set("value",Bl(l,{computed:i,prop:a}))},setValue({context:e,event:t}){const a=t.target?.value??t.value;e.set("value",a)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:a}){const i=Bl(t("max"),{computed:a,prop:t});e.set("value",i)},decrementToMin({context:e,prop:t,computed:a}){const i=Bl(t("min"),{computed:a,prop:t});e.set("value",i)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:a}){if(a.type==="INPUT.CHANGE")return;const i=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:i,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnValueCommit({computed:e,prop:t}){t("onValueCommit")?.({value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:a,scope:i}){const l=t.type.endsWith("CHANGE")?e.get("value"):a("formattedValue"),c=bf(i),d=t.selection??lN(c,i);Ye(()=>{ul(c,l),sN(c,d,i)})},setFormattedValue({context:e,computed:t,action:a}){e.set("value",t("formattedValue")),a(["syncInputElement"])},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const a=Rw(t),i=e.get("scrubberCursorPoint");!a||!i||(a.style.transform=`translate3d(${i.x}px, ${i.y}px, 0px)`)}}}});Me()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueCommit","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var Ow=He("pinInput").parts("root","label","input","control");Ow.build();Me()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);var jw=He("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");jw.build();Me()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);var Q0=He("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");Q0.build();Me()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var Tw=He("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");Tw.build();Me()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var J0=He("radio-group").parts("root","label","item","itemText","itemControl","indicator");J0.build();Me()(["dir","disabled","form","getRootNode","id","ids","invalid","name","onValueChange","orientation","readOnly","required","value","defaultValue"]);Me()(["value","disabled","invalid"]);var zw=He("rating-group").parts("root","label","item","control");zw.build();Me()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]);Me()(["index"]);var _w=He("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");_w.build();Me()(["dir","getRootNode","ids","id"]);const Aw=J0.rename("segment-group");Aw.build();var Iw=He("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");Iw.build();var Nw=e=>new dc(e);Nw.empty=()=>new dc({items:[]});var pN=e=>e.ids?.content??`select:${e.id}:content`,mN=e=>e.ids?.trigger??`select:${e.id}:trigger`,bN=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,vN=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,xN=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,yN=e=>e.ids?.positioner??`select:${e.id}:positioner`,um=e=>e.getById(xN(e)),iu=e=>e.getById(pN(e)),vf=e=>e.getById(mN(e)),SN=e=>e.getById(bN(e)),i1=e=>e.getById(yN(e)),dm=(e,t)=>t==null?null:e.getById(vN(e,t)),{and:ou,not:Fl,or:CN}=Di();CN("isTriggerArrowDownEvent","isTriggerEnterEvent"),ou(Fl("multiple"),"hasSelectedItems"),Fl("multiple"),ou(Fl("multiple"),"hasSelectedItems"),Fl("multiple"),Fl("multiple"),Fl("multiple"),Fl("multiple"),ou("closeOnSelect","isOpenControlled"),ou("hasHighlightedItem","loop","isLastItemHighlighted"),ou("hasHighlightedItem","loop","isFirstItemHighlighted");function o1(e){const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null||!!t}Me()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]);Me()(["item","persistFocus"]);Me()(["id"]);Me()(["htmlFor"]);const[Vw,jo]=gl({name:"SliderContext",hookName:"useSliderContext",providerName:""}),Lw=m.forwardRef((e,t)=>{const a=jo(),i=On(a.getControlProps(),e);return u.jsx(Nn.div,{...i,ref:t})});Lw.displayName="SliderControl";const[EN,wN]=gl({name:"SliderThumbPropsContext",hookName:"useSliderThumbPropsContext",providerName:""}),Mw=m.forwardRef((e,t)=>{const a=jo(),{index:i}=wN(),l=On(a.getDraggingIndicatorProps({index:i}),e);return u.jsx(Nn.span,{...l,ref:t,children:e.children||a.getThumbValue(i)})});Mw.displayName="SliderDraggingIndicator";const Dw=m.forwardRef((e,t)=>{const a=jo(),i=On(a.getLabelProps(),e);return u.jsx(Nn.label,{...i,ref:t})});Dw.displayName="SliderLabel";const kN=as(),Pw=m.forwardRef((e,t)=>{const[a,i]=kN(e,["value"]),l=jo(),c=On(l.getMarkerProps(a),i);return u.jsx(Nn.span,{...c,ref:t})});Pw.displayName="SliderMarker";const Uw=m.forwardRef((e,t)=>{const a=jo(),i=On(a.getMarkerGroupProps(),e);return u.jsx(Nn.div,{...i,ref:t})});Uw.displayName="SliderMarkerGroup";const $w=m.forwardRef((e,t)=>{const a=jo(),i=On(a.getRangeProps(),e);return u.jsx(Nn.div,{...i,ref:t})});$w.displayName="SliderRange";var Hw=He("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator"),ji=Hw.build(),Bw=e=>e.ids?.root??`slider:${e.id}`,Fw=(e,t)=>e.ids?.thumb?.(t)??`slider:${e.id}:thumb:${t}`,Ym=(e,t)=>e.ids?.hiddenInput?.(t)??`slider:${e.id}:input:${t}`,Ww=e=>e.ids?.control??`slider:${e.id}:control`,RN=e=>e.ids?.track??`slider:${e.id}:track`,ON=e=>e.ids?.range??`slider:${e.id}:range`,l1=e=>e.ids?.label??`slider:${e.id}:label`,jN=e=>e.ids?.valueText??`slider:${e.id}:value-text`,TN=(e,t)=>e.ids?.marker?.(t)??`slider:${e.id}:marker:${t}`,zN=e=>e.getById(Bw(e)),_N=(e,t)=>e.getById(Fw(e,t)),Gw=e=>Ql(Yw(e),"[role=slider]"),AN=e=>Gw(e)[0],qw=(e,t)=>e.getById(Ym(e,t)),Yw=e=>e.getById(Ww(e)),s1=(e,t)=>{const{prop:a,scope:i,refs:l}=e,c=Yw(i);if(!c)return;const d=l.get("thumbDragOffset"),h={x:t.x-(d?.x??0),y:t.y-(d?.y??0)},b=A0(h,c).getPercentValue({orientation:a("orientation"),dir:a("dir"),inverted:{y:!0}});return C0(b,a("min"),a("max"),a("step"))},IN=(e,t)=>{t.forEach((a,i)=>{const l=qw(e,i);l&&O0(l,{value:a})})},NN=e=>({left:e?.offsetLeft??0,top:e?.offsetTop??0,width:e?.offsetWidth??0,height:e?.offsetHeight??0});function VN(e){const t=e[0],a=e[e.length-1];return[t,a]}function LN(e){const{prop:t,computed:a}=e,i=a("valuePercent"),[l,c]=VN(i);if(i.length===1){if(t("origin")==="center"){const d=i[0]<50,h=d?`${i[0]}%`:"50%",p=d?"50%":`${100-i[0]}%`;return{start:h,end:p}}return t("origin")==="end"?{start:`${c}%`,end:"0%"}:{start:"0%",end:`${100-c}%`}}return{start:`${l}%`,end:`${100-c}%`}}function MN(e){const{computed:t}=e,a=t("isVertical"),i=t("isRtl");return a?{position:"absolute",bottom:"var(--slider-range-start)",top:"var(--slider-range-end)"}:{position:"absolute",[i?"right":"left"]:"var(--slider-range-start)",[i?"left":"right"]:"var(--slider-range-end)"}}function DN(e,t){const{context:a,prop:i}=e,{height:l=0}=a.get("thumbSize")??{},c=Lm([i("min"),i("max")],[-l/2,l/2]);return parseFloat(c(t).toFixed(2))}function PN(e,t){const{computed:a,context:i,prop:l}=e,{width:c=0}=i.get("thumbSize")??{};if(a("isRtl")){const p=Lm([l("max"),l("min")],[-c/2,c/2]);return-1*parseFloat(p(t).toFixed(2))}const h=Lm([l("min"),l("max")],[-c/2,c/2]);return parseFloat(h(t).toFixed(2))}function UN(e,t,a){const{computed:i,prop:l}=e;if(l("thumbAlignment")==="center")return`${t}%`;const c=i("isVertical")?DN(e,a):PN(e,a);return`calc(${t}% - ${c}px)`}function Xw(e,t){const{prop:a}=e,i=ch(t,a("min"),a("max"))*100;return UN(e,i,t)}function Kw(e){const{computed:t,prop:a}=e;let i="visible";return a("thumbAlignment")==="contain"&&!t("hasMeasuredThumbSize")&&(i="hidden"),i}function c1(e,t){const{computed:a,context:i}=e,l=a("isVertical")?"bottom":"insetInlineStart",c=i.get("focusedIndex");return{visibility:Kw(e),position:"absolute",transform:"var(--slider-thumb-transform)",[l]:`var(--slider-thumb-offset-${t})`,zIndex:c===t?1:void 0}}function $N(){return{touchAction:"none",userSelect:"none",WebkitUserSelect:"none",position:"relative"}}function HN(e){const{context:t,computed:a}=e,i=a("isVertical"),l=a("isRtl"),c=LN(e),d=t.get("thumbSize");return{...t.get("value").reduce((p,b,v)=>{const x=Xw(e,b);return{...p,[`--slider-thumb-offset-${v}`]:x}},{}),"--slider-thumb-width":lS(d?.width),"--slider-thumb-height":lS(d?.height),"--slider-thumb-transform":i?"translateY(50%)":l?"translateX(50%)":"translateX(-50%)","--slider-range-start":c.start,"--slider-range-end":c.end}}function BN(e,t){const{computed:a}=e,i=a("isHorizontal"),l=a("isRtl");return{visibility:Kw(e),position:"absolute",pointerEvents:"none",[i?"insetInlineStart":"bottom"]:Xw(e,t),translate:"var(--translate-x) var(--translate-y)","--translate-x":i?l?"50%":"-50%":"0%","--translate-y":i?"0%":"50%"}}function FN(){return{userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none",position:"relative"}}function WN(e,t){return t.map((a,i)=>Xm(e,a,i))}function sl(e,t){const{context:a,prop:i}=e,l=i("step")*i("minStepsBetweenThumbs");return $C(a.get("value"),i("min"),i("max"),l)[t]}function Xm(e,t,a){const{prop:i}=e,l=sl(e,a),c=_u(t,i("min"),i("max"),i("step"));return Bn(c,l.min,l.max)}function GN(e,t,a){const{context:i,prop:l}=e,c=t??i.get("focusedIndex"),d=sl(e,c),h=Xj(c,{...d,step:a??l("step"),values:i.get("value")});return h[c]=Bn(h[c],d.min,d.max),h}function qN(e,t,a){const{context:i,prop:l}=e,c=t??i.get("focusedIndex"),d=sl(e,c),h=Yj(c,{...d,step:a??l("step"),values:i.get("value")});return h[c]=Bn(h[c],d.min,d.max),h}function YN(e,t){const{context:a}=e,i=a.get("value");let l=0,c=Math.abs(i[0]-t);for(let d=1;d0&&l[h-1]===c;)h-=1;return h}return t}function XN(e,t){const{state:a,send:i,context:l,prop:c,computed:d,scope:h}=e,p=c("aria-label"),b=c("aria-labelledby"),v=l.get("value"),x=l.get("focusedIndex"),S=a.matches("focus"),C=a.matches("dragging"),O=d("isDisabled"),w=c("invalid"),T=d("isInteractive"),A=c("orientation")==="horizontal",_=c("orientation")==="vertical";function I(R){return ch(R,c("min"),c("max"))}function M(R){return C0(R,c("min"),c("max"),c("step"))}return{value:v,dragging:C,focused:S,setValue(R){i({type:"SET_VALUE",value:R})},getThumbValue(R){return v[R]},setThumbValue(R,V){i({type:"SET_VALUE",index:R,value:V})},getValuePercent:I,getPercentValue:M,getThumbPercent(R){return I(v[R])},setThumbPercent(R,V){const P=M(V);i({type:"SET_VALUE",index:R,value:P})},getThumbMin(R){return sl(e,R).min},getThumbMax(R){return sl(e,R).max},increment(R){i({type:"INCREMENT",index:R})},decrement(R){i({type:"DECREMENT",index:R})},focus(){T&&i({type:"FOCUS",index:0})},getLabelProps(){return t.label({...ji.label.attrs,dir:c("dir"),"data-disabled":gt(O),"data-orientation":c("orientation"),"data-invalid":gt(w),"data-dragging":gt(C),"data-focus":gt(S),id:l1(h),htmlFor:Ym(h,0),onClick(R){T&&(R.preventDefault(),AN(h)?.focus())},style:{userSelect:"none",WebkitUserSelect:"none"}})},getRootProps(){return t.element({...ji.root.attrs,"data-disabled":gt(O),"data-orientation":c("orientation"),"data-dragging":gt(C),"data-invalid":gt(w),"data-focus":gt(S),id:Bw(h),dir:c("dir"),style:HN(e)})},getValueTextProps(){return t.element({...ji.valueText.attrs,dir:c("dir"),"data-disabled":gt(O),"data-orientation":c("orientation"),"data-invalid":gt(w),"data-focus":gt(S),id:jN(h)})},getTrackProps(){return t.element({...ji.track.attrs,dir:c("dir"),id:RN(h),"data-disabled":gt(O),"data-invalid":gt(w),"data-dragging":gt(C),"data-orientation":c("orientation"),"data-focus":gt(S),style:{position:"relative"}})},getThumbProps(R){const{index:V=0,name:P}=R,F=v[V],B=sl(e,V),W=c("getAriaValueText")?.({value:F,index:V}),Y=Array.isArray(p)?p[V]:p,U=Array.isArray(b)?b[V]:b;return t.element({...ji.thumb.attrs,dir:c("dir"),"data-index":V,"data-name":P,id:Fw(h,V),"data-disabled":gt(O),"data-orientation":c("orientation"),"data-focus":gt(S&&x===V),"data-dragging":gt(C&&x===V),draggable:!1,"aria-disabled":lT(O),"aria-label":Y,"aria-labelledby":U??l1(h),"aria-orientation":c("orientation"),"aria-valuemax":B.max,"aria-valuemin":B.min,"aria-valuenow":v[V],"aria-valuetext":W,role:"slider",tabIndex:O?void 0:0,style:c1(e,V),onPointerDown(be){if(!T||!uS(be))return;const ve=be.currentTarget.getBoundingClientRect(),N={x:ve.left+ve.width/2,y:ve.top+ve.height/2},te={x:be.clientX-N.x,y:be.clientY-N.y};i({type:"THUMB_POINTER_DOWN",index:V,offset:te}),be.stopPropagation()},onBlur(){T&&i({type:"BLUR"})},onFocus(){T&&i({type:"FOCUS",index:V})},onKeyDown(be){if(be.defaultPrevented||!T)return;const de=WT(be)*c("step"),ve={ArrowUp(){A||i({type:"ARROW_INC",step:de,src:"ArrowUp"})},ArrowDown(){A||i({type:"ARROW_DEC",step:de,src:"ArrowDown"})},ArrowLeft(){_||i({type:"ARROW_DEC",step:de,src:"ArrowLeft"})},ArrowRight(){_||i({type:"ARROW_INC",step:de,src:"ArrowRight"})},PageUp(){i({type:"ARROW_INC",step:de,src:"PageUp"})},PageDown(){i({type:"ARROW_DEC",step:de,src:"PageDown"})},Home(){i({type:"HOME"})},End(){i({type:"END"})}},N=$T(be,{dir:c("dir"),orientation:c("orientation")}),te=ve[N];te&&(te(be),be.preventDefault(),be.stopPropagation())}})},getHiddenInputProps(R){const{index:V=0,name:P}=R;return t.input({name:P??(c("name")?c("name")+(v.length>1?"[]":""):void 0),form:c("form"),type:"text",hidden:!0,defaultValue:v[V],id:Ym(h,V)})},getRangeProps(){return t.element({id:ON(h),...ji.range.attrs,dir:c("dir"),"data-dragging":gt(C),"data-focus":gt(S),"data-invalid":gt(w),"data-disabled":gt(O),"data-orientation":c("orientation"),style:MN(e)})},getControlProps(){return t.element({...ji.control.attrs,dir:c("dir"),id:Ww(h),"data-dragging":gt(C),"data-disabled":gt(O),"data-orientation":c("orientation"),"data-invalid":gt(w),"data-focus":gt(S),style:$N(),onPointerDown(R){if(!T||!uS(R)||DT(R))return;const V=Wf(R);i({type:"POINTER_DOWN",point:V}),R.preventDefault(),R.stopPropagation()}})},getMarkerGroupProps(){return t.element({...ji.markerGroup.attrs,role:"presentation",dir:c("dir"),"aria-hidden":!0,"data-orientation":c("orientation"),style:FN()})},getMarkerProps(R){const V=BN(e,R.value);let P;return R.valuelh(v)?P="over-value":P="at-value",t.element({...ji.marker.attrs,id:TN(h,R.value),role:"presentation",dir:c("dir"),"data-orientation":c("orientation"),"data-value":R.value,"data-disabled":gt(O),"data-state":P,style:V})},getDraggingIndicatorProps(R){const{index:V=0}=R,P=V===x&&C;return t.element({...ji.draggingIndicator.attrs,role:"presentation",dir:c("dir"),hidden:!P,"data-orientation":c("orientation"),"data-state":P?"open":"closed",style:c1(e,V)})}}}var KN=(e,t)=>e?.width===t?.width&&e?.height===t?.height,u1=(e,t,a,i,l)=>$C(e,t,a,l*i).map(d=>{const h=_u(d.value,d.min,d.max,i),p=Bn(h,d.min,d.max);if(!PC(p,t,a))throw new Error("[zag-js/slider] The configured `min`, `max`, `step` or `minStepsBetweenThumbs` values are invalid");return p}),ZN={props({props:e}){const t=e.min??0,a=e.max??100,i=e.step??1,l=e.defaultValue??[t],c=e.minStepsBetweenThumbs??0;return{dir:"ltr",thumbAlignment:"contain",origin:"start",orientation:"horizontal",minStepsBetweenThumbs:c,...e,defaultValue:u1(l,t,a,i,c),value:e.value?u1(e.value,t,a,i,c):void 0,max:a,step:i,min:t}},initialState(){return"idle"},context({prop:e,bindable:t,getContext:a}){return{thumbSize:t(()=>({defaultValue:e("thumbSize")||null})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:ka,hash(i){return i.join(",")},onChange(i){e("onValueChange")?.({value:i})}})),focusedIndex:t(()=>({defaultValue:-1,onChange(i){const l=a();e("onFocusChange")?.({focusedIndex:i,value:l.get("value")})}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},refs(){return{thumbDragOffset:null}},computed:{isHorizontal:({prop:e})=>e("orientation")==="horizontal",isVertical:({prop:e})=>e("orientation")==="vertical",isRtl:({prop:e})=>e("orientation")==="horizontal"&&e("dir")==="rtl",isDisabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled"),isInteractive:({prop:e,computed:t})=>!(e("readOnly")||t("isDisabled")),hasMeasuredThumbSize:({context:e})=>e.get("thumbSize")!=null,valuePercent:Dm(({context:e,prop:t})=>[e.get("value"),t("min"),t("max")],([e,t,a])=>e.map(i=>100*ch(i,t,a)))},watch({track:e,action:t,context:a,computed:i,send:l}){e([()=>a.hash("value")],()=>{t(["syncInputElements","dispatchChangeEvent"])}),e([()=>i("isDisabled")],()=>{i("isDisabled")&&l({type:"POINTER_CANCEL"})})},effects:["trackFormControlState","trackThumbSize"],on:{SET_VALUE:[{guard:"hasIndex",actions:["setValueAtIndex","invokeOnChangeEnd"]},{actions:["setValue","invokeOnChangeEnd"]}],INCREMENT:{actions:["incrementThumbAtIndex","invokeOnChangeEnd"]},DECREMENT:{actions:["decrementThumbAtIndex","invokeOnChangeEnd"]}},states:{idle:{on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","focusActiveThumb"]},FOCUS:{target:"focus",actions:["setFocusedIndex"]},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","setThumbDragOffset","focusActiveThumb"]}}},focus:{entry:["focusActiveThumb"],on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","focusActiveThumb"]},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","setThumbDragOffset","focusActiveThumb"]},ARROW_DEC:{actions:["decrementThumbAtIndex","invokeOnChangeEnd"]},ARROW_INC:{actions:["incrementThumbAtIndex","invokeOnChangeEnd"]},HOME:{actions:["setFocusedThumbToMin","invokeOnChangeEnd"]},END:{actions:["setFocusedThumbToMax","invokeOnChangeEnd"]},BLUR:{target:"idle",actions:["clearFocusedIndex"]}}},dragging:{entry:["focusActiveThumb"],effects:["trackPointerMove"],on:{POINTER_UP:{target:"focus",actions:["invokeOnChangeEnd","clearThumbDragOffset"]},POINTER_MOVE:{actions:["setPointerValue"]},POINTER_CANCEL:{target:"idle",actions:["clearFocusedIndex","clearThumbDragOffset"]}}}},implementations:{guards:{hasIndex:({event:e})=>e.index!=null},effects:{trackFormControlState({context:e,scope:t}){return sc(zN(t),{onFieldsetDisabledChange(a){e.set("fieldsetDisabled",a)},onFormReset(){e.set("value",e.initial("value"))}})},trackPointerMove({scope:e,send:t}){return iE(e.getDoc(),{onPointerMove(a){t({type:"POINTER_MOVE",point:a.point})},onPointerUp(){t({type:"POINTER_UP"})}})},trackThumbSize({context:e,scope:t,prop:a}){if(a("thumbAlignment")!=="contain"||a("thumbSize"))return;const i=d=>{const h=NN(d),p=Qj(h,["width","height"]);KN(e.get("thumbSize"),p)||e.set("thumbSize",p)},l=Gw(t);l.forEach(i);const c=l.map(d=>mz.observe(d,()=>i(d)));return zu(...c)}},actions:{dispatchChangeEvent({context:e,scope:t}){IN(t,e.get("value"))},syncInputElements({context:e,scope:t}){e.get("value").forEach((a,i)=>{const l=qw(t,i);ul(l,a.toString())})},invokeOnChangeEnd({prop:e,context:t}){queueMicrotask(()=>{e("onValueChangeEnd")?.({value:t.get("value")})})},setClosestThumbIndex(e){const{context:t,event:a}=e,i=s1(e,a.point);if(i==null)return;const l=YN(e,i);t.set("focusedIndex",l)},setFocusedIndex(e){const{context:t,event:a}=e,i=Zw(e,a.index);t.set("focusedIndex",i)},clearFocusedIndex({context:e}){e.set("focusedIndex",-1)},setThumbDragOffset(e){const{refs:t,event:a}=e;t.set("thumbDragOffset",a.offset??null)},clearThumbDragOffset({refs:e}){e.set("thumbDragOffset",null)},setPointerValue(e){queueMicrotask(()=>{const{context:t,event:a}=e,i=s1(e,a.point);if(i==null)return;const l=t.get("focusedIndex"),c=Xm(e,i,l);t.set("value",d=>bu(d,l,c))})},focusActiveThumb({scope:e,context:t}){Ye(()=>{_N(e,t.get("focusedIndex"))?.focus({preventScroll:!0})})},decrementThumbAtIndex(e){const{context:t,event:a}=e,i=GN(e,a.index,a.step);t.set("value",i)},incrementThumbAtIndex(e){const{context:t,event:a}=e,i=qN(e,a.index,a.step);t.set("value",i)},setFocusedThumbToMin(e){const{context:t}=e,a=t.get("focusedIndex"),{min:i}=sl(e,a);t.set("value",l=>bu(l,a,i))},setFocusedThumbToMax(e){const{context:t}=e,a=t.get("focusedIndex"),{max:i}=sl(e,a);t.set("value",l=>bu(l,a,i))},setValueAtIndex(e){const{context:t,event:a}=e,i=Xm(e,a.value,a.index);t.set("value",l=>bu(l,a.index,i))},setValue(e){const{context:t,event:a}=e,i=WN(e,a.value);t.set("value",i)}}}};Me()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]);Me()(["index","name"]);Me()(["value"]);const QN=e=>{const t=m.useId(),{getRootNode:a}=FC(),{dir:i}=sE(),l={id:t,dir:i,getRootNode:a,...e},c=uE(ZN,l);return XN(c,fE)},JN=as(),Qw=m.forwardRef((e,t)=>{const[a,i]=JN(e,["aria-label","aria-labelledby","defaultValue","disabled","form","getAriaValueText","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value"]),l=QN(a),c=On(l.getRootProps(),i);return u.jsx(Vw,{value:l,children:u.jsx(Nn.div,{...c,ref:t})})});Qw.displayName="SliderRoot";const eV=as(),Jw=m.forwardRef((e,t)=>{const[{value:a},i]=eV(e,["value"]),l=On(a.getRootProps(),i);return u.jsx(Vw,{value:a,children:u.jsx(Nn.div,{...l,ref:t})})});Jw.displayName="SliderRootProvider";const tV=as(),ek=m.forwardRef((e,t)=>{const[a,i]=tV(e,["index","name"]),l=jo(),c=On(l.getThumbProps(a),i);return u.jsx(EN,{value:a,children:u.jsx(Nn.div,{...c,ref:t})})});ek.displayName="SliderThumb";const tk=m.forwardRef((e,t)=>{const a=jo(),i=On(a.getTrackProps(),e);return u.jsx(Nn.div,{...i,ref:t})});tk.displayName="SliderTrack";const nk=m.forwardRef((e,t)=>{const{children:a,...i}=e,l=jo(),c=On(l.getValueTextProps(),i);return u.jsx(Nn.span,{...c,ref:t,children:a||l.value.join(", ")})});nk.displayName="SliderValueText";var ak=He("switch").parts("root","label","control","thumb");ak.build();Me()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var rk=He("tagsInput").parts("root","label","control","input","clearTrigger","item","itemPreview","itemInput","itemText","itemDeleteTrigger");rk.build();var nV=e=>e.ids?.root??`tags-input:${e.id}`,aV=e=>e.ids?.input??`tags-input:${e.id}:input`,rV=e=>e.ids?.hiddenInput??`tags-input:${e.id}:hidden-input`,Km=(e,t)=>e.ids?.item?.(t)??`tags-input:${e.id}:tag:${t.value}:${t.index}`,iV=(e,t)=>e.ids?.itemInput?.(t)??`${Km(e,t)}:input`,oV=e=>`${e}:input`,d1=(e,t)=>e.getById(oV(t)),lV=e=>Ql(ik(e),"[data-part=item]"),sV=(e,t)=>e.getById(iV(e,t)),ik=e=>e.getById(nV(e)),lu=e=>e.getById(aV(e)),ok=e=>e.getById(rV(e)),ts=e=>Ql(ik(e),"[data-part=item-preview]:not([data-disabled])"),cV=e=>ts(e)[0],uV=e=>ts(e)[ts(e).length-1],dV=(e,t)=>lE(ts(e),t,!1),fV=(e,t)=>oE(ts(e),t,!1),hV=(e,t)=>ts(e)[t],su=(e,t)=>hh(ts(e),t),gV=(e,t)=>{const a=ok(e);a&&O0(a,{value:t})},{and:cu,not:Wl,or:pV}=Di();cu(pV(Wl("isAtMax"),"allowOverflow"),Wl("isInputValueEmpty")),Wl("hasHighlightedTag"),cu("hasTags","isCaretAtStart"),cu("hasTags","isCaretAtStart"),cu("hasTags","isCaretAtStart",Wl("isLastTagHighlighted")),Wl("isCaretAtStart"),cu("isTagEditable","hasHighlightedTag"),Wl("isCaretAtStart"),Wl("isCaretAtStart");Me()(["addOnPaste","allowOverflow","autoFocus","blurBehavior","delimiter","dir","disabled","editable","form","getRootNode","id","ids","inputValue","invalid","max","maxLength","name","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onPointerDownOutside","onValueChange","onValueInvalid","required","readOnly","translations","validate","value","defaultValue","defaultInputValue"]);Me()(["index","disabled","value"]);var lk=He("tooltip").parts("trigger","arrow","arrowTip","positioner","content");lk.build();var mV=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,bV=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,fm=e=>e.getById(mV(e)),f1=e=>e.getById(bV(e)),Gl=Jj({id:null}),{and:vV,not:h1}=Di();vV("noVisibleTooltip",h1("hasPointerMoveOpened")),h1("hasPointerMoveOpened");Me()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);function eb(e,t=[]){const a=Object.assign({},e);for(const i of t)i in a&&delete a[i];return a}const xV=(e,t)=>{if(!e||typeof e!="string")return{invalid:!0,value:e};const[a,i]=e.split("/");if(!a||!i||a==="currentBg")return{invalid:!0,value:a};const l=t(`colors.${a}`),c=t.raw(`opacity.${i}`)?.value;if(!c&&isNaN(Number(i)))return{invalid:!0,value:a};const d=c?Number(c)*100+"%":`${i}%`,h=l??a;return{invalid:!1,color:h,value:`color-mix(in srgb, ${h} ${d}, transparent)`}},Wt=e=>(t,a)=>{const i=a.utils.colorMix(t);if(i.invalid)return{[e]:t};const l="--mix-"+e;return{[l]:i.value,[e]:`var(${l}, ${i.color})`}};function Zm(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(a=>Zm(a));const t=Object.create(Object.getPrototypeOf(e));for(const a of Object.keys(e))t[a]=Zm(e[a]);return t}function Qm(e,t){if(t==null)return e;for(const a of Object.keys(t))if(!(t[a]===void 0||a==="__proto__"))if(!Ba(e[a])&&Ba(t[a]))Object.assign(e,{[a]:t[a]});else if(e[a]&&Ba(t[a]))Qm(e[a],t[a]);else if(Array.isArray(t[a])&&Array.isArray(e[a])){let i=0;for(;ie!=null;function Mi(e,t,a={}){const{stop:i,getKey:l}=a;function c(d,h=[]){if(Ba(d)||Array.isArray(d)){const p={};for(const[b,v]of Object.entries(d)){const x=l?.(b,v)??b,S=[...h,x];if(i?.(d,S))return t(d,h);const C=c(v,S);Jm(C)&&(p[x]=C)}return p}return t(d,h)}return c(e)}function hc(e,t){return Array.isArray(e)?e.map(a=>Jm(a)?t(a):a):Ba(e)?Mi(e,a=>t(a)):Jm(e)?t(e):e}const xf=["value","type","description"],yV=e=>e&&typeof e=="object"&&!Array.isArray(e),sk=(...e)=>{const t=fc({},...e.map(Zm));return t.theme?.tokens&&Mi(t.theme.tokens,a=>{const c=Object.keys(a).filter(h=>!xf.includes(h)).length>0,d=xf.some(h=>a[h]!=null);return c&&d&&(a.DEFAULT||(a.DEFAULT={}),xf.forEach(h=>{var p;a[h]!=null&&((p=a.DEFAULT)[h]||(p[h]=a[h]),delete a[h])})),a},{stop(a){return yV(a)&&Object.keys(a).some(i=>xf.includes(i)||i!==i.toLowerCase()&&i!==i.toUpperCase())}}),t},SV=e=>e,Vn=e=>e,Fe=e=>e,CV=e=>e,EV=e=>e,rs=e=>e,wV=e=>e,kV=e=>e,RV=e=>e;function ck(){const e=t=>t;return new Proxy(e,{get(){return e}})}const jn=ck(),Ch=ck(),tb=e=>e,OV=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function jV(e){return`${e}`.replace(OV,t=>`\\${t}`)}const TV=/[A-Z]/g;function zV(e){return e.replace(TV,t=>`-${t.toLowerCase()}`)}function uk(e,t={}){const{fallback:a="",prefix:i=""}=t,l=zV(["-",i,jV(e)].filter(Boolean).join("-"));return{var:l,ref:`var(${l}${a?`, ${a}`:""})`}}const _V=e=>/^var\(--.+\)$/.test(e),$n=(e,t)=>t!=null?`${e}(${t})`:t,ql=e=>{if(_V(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},g1=e=>({values:["outside","inside","mixed","none"],transform(t,{token:a}){const i=a("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":i,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":i,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":i,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":i,[e]:{outline:"none"}}}[t]??{}}}),AV=Wt("borderColor"),xo=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),IV=SV({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),Hs=uk("bg-currentcolor"),p1=e=>e===Hs.ref||e==="currentBg",Ft=e=>({...e("colors"),currentBg:Hs}),NV=tb({conditions:IV,utilities:{background:{values:Ft,shorthand:["bg"],transform(e,t){if(p1(t.raw))return{background:Hs.ref};const a=Wt("background")(e,t);return{...a,[Hs.var]:a?.background}}},backgroundColor:{values:Ft,shorthand:["bgColor"],transform(e,t){if(p1(t.raw))return{backgroundColor:Hs.ref};const a=Wt("backgroundColor")(e,t);return{...a,[Hs.var]:a?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}}},backgroundGradient:{shorthand:["bgGradient"],values(e){return{...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}},transform(e){return{"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e}}},gradientFrom:{values:Ft,transform:Wt("--gradient-from")},gradientTo:{values:Ft,transform:Wt("--gradient-to")},gradientVia:{values:Ft,transform(e,t){return{...Wt("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:Ft,transform:Wt("borderColor")},borderTopColor:{values:Ft,transform:Wt("borderTopColor")},borderBlockStartColor:{values:Ft,transform:Wt("borderBlockStartColor")},borderBottomColor:{values:Ft,transform:Wt("borderBottomColor")},borderBlockEndColor:{values:Ft,transform:Wt("borderBlockEndColor")},borderLeftColor:{values:Ft,transform:Wt("borderLeftColor")},borderInlineStartColor:{values:Ft,shorthand:["borderStartColor"],transform:Wt("borderInlineStartColor")},borderRightColor:{values:Ft,transform:Wt("borderRightColor")},borderInlineEndColor:{values:Ft,shorthand:["borderEndColor"],transform:Wt("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:Ft,transform:Wt("color")},fill:{values:Ft,transform:Wt("fill")},stroke:{values:Ft,transform:Wt("stroke")},accentColor:{values:Ft,transform:Wt("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:Ft,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":AV(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:Ft,transform:Wt("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform(e){return e!=="auto"?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}}},blur:{values:"blurs",transform:e=>({"--blur":$n("blur",e)})},brightness:{transform:e=>({"--brightness":$n("brightness",e)})},contrast:{transform:e=>({"--contrast":$n("contrast",e)})},grayscale:{transform:e=>({"--grayscale":$n("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":$n("hue-rotate",ql(e))})},invert:{transform:e=>({"--invert":$n("invert",e)})},saturate:{transform:e=>({"--saturate":$n("saturate",e)})},sepia:{transform:e=>({"--sepia":$n("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":$n("drop-shadow",e)})},backdropFilter:{transform(e){return e!=="auto"?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":$n("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":$n("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":$n("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":$n("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":$n("hue-rotate",ql(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":$n("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":$n("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":$n("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":$n("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:Ft,transform:Wt("outlineColor")},focusRing:g1("&:is(:focus, [data-focus])"),focusVisibleRing:g1("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:Ft,transform:Wt("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:a})=>({[a.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:a}){return{[a.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:Ft,transform:Wt("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:Ft,transform:Wt("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:Ft,transform:Wt("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:Ft,transform:Wt("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return e==="auto"&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),e==="auto-gpu"&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":ql(e)})},skewY:{transform:e=>({"--skew-y":ql(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform(e){return e!=="auto"?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}}},spaceXReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}}}},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}}}},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform(e){return e!=="auto"?{rotate:ql(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":ql(e)}}},rotateY:{transform(e){return{"--rotate-y":ql(e)}}},translate:{transform(e){return e!=="auto"?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return xo("all");case"position":return xo("left, right, top, bottom, inset-inline, inset-block");case"colors":return xo("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return xo("opacity");case"shadow":return xo("box-shadow");case"transform":return xo("transform");case"size":return xo("width, height");case"backgrounds":return xo("background, background-color, background-image, background-position");case"common":return xo("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform(e){return e===!0?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}}},lineClamp:{transform(e){return e==="none"?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform(e){return{"--border-spacing-x":e}}},borderSpacingY:{values:"spacing",transform(e){return{"--border-spacing-y":e}}},srOnly:{values:{type:"boolean"},transform(e){return VV[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:Ft,transform:Wt("caretColor")},cursor:{values:"cursor"}}}),VV={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var LV="",MV=LV.split(","),DV="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",PV=DV.split(",").concat(MV),UV=new Map(PV.map(e=>[e,!0]));function $V(e){const t=Object.create(null);return a=>(t[a]===void 0&&(t[a]=e(a)),t[a])}var HV=/&|@/,BV=$V(e=>UV.has(e)||e.startsWith("--")||HV.test(e));function ni(e,t){const a={};for(const i in e){const l=t(i,e[i]);a[l[0]]=l[1]}return a}function dk(e,t){const a={};return Mi(e,(i,l)=>{i&&(a[l.join(".")]=i.value)},{stop:t}),a}var FV=Object.defineProperty,WV=(e,t,a)=>t in e?FV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,m1=(e,t,a)=>WV(e,typeof t!="symbol"?t+"":t,a);function th(e){if(e===null)return"null";if(e===void 0)return"undefined";const t=typeof e;return t==="string"?`s:${e}`:t==="number"?`n:${e}`:t==="boolean"?`b:${e}`:t==="function"?`f:${e.name||"anonymous"}`:Array.isArray(e)?`a:[${e.map(th).join(",")}]`:t==="object"?`o:{${Object.keys(e).sort().map(i=>`${i}:${th(e[i])}`).join(",")}}`:String(e)}class GV{constructor(t=500){m1(this,"cache",new Map),m1(this,"maxSize"),this.maxSize=t}get(t){const a=this.cache.get(t);return a!==void 0&&(this.cache.delete(t),this.cache.set(t,a)),a}set(t,a){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){const i=this.cache.keys().next().value;i!==void 0&&this.cache.delete(i)}this.cache.set(t,a)}clear(){this.cache.clear()}}const Fa=e=>{const t=new GV;function a(...i){const l=i.length===1?th(i[0]):i.map(th).join("|");let c=t.get(l);return c===void 0&&(c=e.apply(this,i),t.set(l,c)),c}return a},fk=16,nh="px",nb="em",wu="rem";function hk(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),a=new RegExp(`${nh}|${nb}|${wu}`);return e.match(new RegExp(`${t.source}(${a.source})`))?.[1]}function gk(e=""){if(typeof e=="number")return`${e}px`;const t=hk(e);if(!t||t===nh)return e;if(t===nb||t===wu)return`${parseFloat(e)*fk}${nh}`}function pk(e=""){const t=hk(e);if(!t||t===wu)return e;if(t===nb)return`${parseFloat(e)}${wu}`;if(t===nh)return`${parseFloat(e)/fk}${wu}`}const qV=e=>e.charAt(0).toUpperCase()+e.slice(1);function YV(e){const t=XV(e),a=Object.fromEntries(t);function i(S){return a[S]}function l(S){return Ms(i(S))}function c(){const S=Object.keys(a),C=KV(S),O=S.flatMap(w=>{const T=i(w),A=[`${w}Down`,Ms({max:Uf(T.min)})],_=[w,Ms({min:T.min})],I=[`${w}Only`,l(w)];return[_,I,A]}).filter(([,w])=>w!=="").concat(C.map(([w,T])=>{const A=i(w),_=i(T);return[`${w}To${qV(T)}`,Ms({min:A.min,max:Uf(_.min)})]}));return Object.fromEntries(O)}function d(){const S=c();return Object.fromEntries(Object.entries(S))}const h=d(),p=S=>h[S];function b(){return y0(["base",...Object.keys(a)])}function v(S){return Ms({min:i(S).min})}function x(S){return Ms({max:Uf(i(S).min)})}return{values:Object.values(a),only:l,keys:b,conditions:h,getCondition:p,up:v,down:x}}function Uf(e){const t=parseFloat(gk(e)??"")-.04;return pk(`${t}px`)}function XV(e){return Object.entries(e).sort(([,a],[,i])=>parseInt(a,10){let d=null;return l<=c.length-1&&(d=c[l+1]?.[1]),d!=null&&(d=Uf(d)),[a,{name:a,min:pk(i),max:d}]})}function KV(e){const t=[];return e.forEach((a,i)=>{let l=i;l++;let c=e[l];for(;c;)t.push([a,c]),l++,c=e[l]}),t}function Ms({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const ZV=/^@|&|&$/,QV=e=>{const{breakpoints:t,conditions:a={}}=e,i=ni(a,(v,x)=>[`_${v}`,x]),l=Object.assign({},i,t.conditions);function c(){return Object.keys(l)}function d(v){return c().includes(v)||ZV.test(v)||v.startsWith("_")}const h=Fa(v=>v.filter(x=>x!=="base").sort((x,S)=>{const C=d(x),O=d(S);return C&&!O?1:!C&&O?-1:0}));function p(v){return v.startsWith("@breakpoint")?t.getCondition(v.replace("@breakpoint ","")):v}function b(v){return Reflect.get(l,v)||v}return{keys:c,sort:h,has:d,resolve:b,breakpoints:t.keys(),expandAtRule:p}},Yt=Object.freeze(Object.create(null)),JV=Object.freeze([]);function Eh(){return Object.create(null)}const mk=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.| +)+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.| +)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),eL=mk("width"),tL=mk("height"),bk=e=>({isMin:C1(e.minMax,e.maxMin,e.min),isMax:C1(e.maxMin,e.minMax,e.max)}),{isMin:e0,isMax:b1}=bk(eL),{isMin:t0,isMax:v1}=bk(tL),x1=/print/i,y1=/^print$/i,nL=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,aL=/(\d)/,Eu=Number.MAX_VALUE,rL={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function S1(e){const t=nL.exec(e)||(e0(e)||t0(e)?aL.exec(e):null);if(!t)return Eu;if(t[0]==="0")return 0;const a=parseFloat(t[1]),i=t[2];return a*(rL[i]||1)}function C1(e,t,a){return i=>e.test(i)||!t.test(i)&&a.test(i)}function iL(e,t){const a=x1.test(e),i=y1.test(e),l=x1.test(t),c=y1.test(t);return a&&l?!i&&c?1:i&&!c?-1:e.localeCompare(t):a?1:l?-1:null}const oL=Fa((e,t)=>{const a=iL(e,t);if(a!==null)return a;const i=e0(e)||t0(e),l=b1(e)||v1(e),c=e0(t)||t0(t),d=b1(t)||v1(t);if(i&&d)return-1;if(l&&c)return 1;const h=S1(e),p=S1(t);return h===Eu&&p===Eu?e.localeCompare(t):h===Eu?1:p===Eu?-1:h!==p?h>p?l?-1:1:l?1:-1:e.localeCompare(t)});function E1(e){return e.sort(([t],[a])=>oL(t,a))}function vk(e){const t=[],a=[],i={};for(const[d,h]of Object.entries(e))d.startsWith("@media")?t.push([d,h]):d.startsWith("@container")?a.push([d,h]):Ba(h)?i[d]=vk(h):i[d]=h;const l=E1(t),c=E1(a);return{...i,...Object.fromEntries(l),...Object.fromEntries(c)}}const xk=/\s*!(important)?/i,lL=Fa(e=>pr(e)?xk.test(e):!1),sL=Fa(e=>pr(e)?e.replace(xk,"").trim():e);function yk(e){const{transform:t,conditions:a,normalize:i}=e,l=dL(e);return Fa(function(...d){const h=l(...d),p=i(h),b=Eh();return Mi(p,(v,x)=>{const S=lL(v);if(v==null)return;const[C,...O]=a.sort(x).map(a.resolve);S&&(v=sL(v));let w=t(C,v)??Yt;w=Mi(w,T=>pr(T)&&S?`${T} !important`:T,{getKey:T=>a.expandAtRule(T)}),cL(b,O.flat(),w)}),vk(b)})}function cL(e,t,a){let i=e;for(const l of t)l&&(i[l]||(i[l]=Eh()),i=i[l]);fc(i,a)}function uL(...e){return e.filter(t=>{if(!Ba(t))return!1;const a=lc(t);return Object.keys(a).length>0})}function dL(e){function t(a){const i=uL(...a);return i.length===1?i:i.map(l=>e.normalize(l))}return Fa(function(...i){return fc({},...t(i))})}const Sk=e=>({base:Yt,variants:Yt,defaultVariants:Yt,compoundVariants:[],...e});function fL(e){const{css:t,conditions:a,normalize:i,layers:l}=e;function c(h={}){const p=Sk(h),{base:b,defaultVariants:v,compoundVariants:x}=p,S=ni(p.variants,(I,M)=>[I,ni(M,(R,V)=>[R,i(V)])]),C=yk({conditions:a,normalize:i,transform(I,M){return S[I]?.[M]}}),O=(I={})=>{const M=i({...v,...lc(I)});let R={...b};fc(R,C(M));const V=d(x,M);return l.wrap("recipes",t(R,V))},w=Object.keys(S),T=I=>{const M=eb(I,["recipe"]),[R,V]=Gs(M,w),P=w.includes("colorPalette"),F=w.includes("orientation");return P||(R.colorPalette=I.colorPalette||v.colorPalette),F&&(V.orientation=I.orientation),[R,V]},A=ni(S,(I,M)=>[I,Object.keys(M)]);return Object.assign(I=>t(O(I)),{className:h.className,__cva__:!0,variantMap:A,variantKeys:w,raw:O,config:h,splitVariantProps:T,merge(I){return c(hL(e)(this,I))}})}function d(h,p){let b=Yt;return h.forEach(v=>{Object.entries(v).every(([S,C])=>S==="css"?!0:(Array.isArray(C)?C:[C]).some(w=>p[S]===w))&&(b=t(b,v.css))}),b}return c}function hL(e){const{css:t}=e;return function(i,l){const c=Sk(l.config),d=y0(i.variantKeys,Object.keys(l.variants)),h=t(i.base,c.base),p=Object.fromEntries(d.map(S=>[S,t(i.config.variants[S],c.variants[S])])),b=fc(i.config.defaultVariants,c.defaultVariants),v=[...i.compoundVariants,...c.compoundVariants];return{className:ia(i.className,l.className),base:h,variants:p,defaultVariants:b,compoundVariants:v}}}const gL={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},w1={reset:0,base:1,tokens:2,recipes:3};function pL(e){const t=e.layers??gL,i=Object.values(t).sort((l,c)=>w1[l]-w1[c]);return{names:i,atRule:`@layer ${i.join(", ")};`,wrap(l,c){return e.disableLayers?c:{[`@layer ${t[l]}`]:c}}}}function mL(e){const{utility:t,normalize:a}=e,{hasShorthand:i,resolveShorthand:l}=t;return function(c){return Mi(c,a,{stop:d=>Array.isArray(d),getKey:i?l:void 0})}}function bL(e){const{preflight:t}=e;if(!t)return{};const{scope:a="",level:i="parent"}=Ba(t)?t:{};let l="";a&&i==="parent"?l=`${a} `:a&&i==="element"&&(l=`&${a}`);const c={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},d={[a||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(i==="element"){const h=Object.entries(c).reduce((p,[b,v])=>(p[b]={[l]:v},p),{});Object.assign(d,h)}else l?d[l]=c:Object.assign(d,c);return d}function vL(e){const{conditions:t,isValidProperty:a}=e;return function(l){return Mi(l,c=>c,{getKey:(c,d)=>Ba(d)&&!t.has(c)&&!a(c)?yL(c).map(h=>{const p=h.startsWith("&")?h.slice(1):h;return xL(p)?`${p} &`:`&${p}`}).join(", "):c})}}function xL(e){const t=e.toLowerCase();return t.startsWith(":host-context")||t.startsWith(":host")||t.startsWith("::slotted")}function yL(e){const t=[];let a=0,i="",l=!1;for(let c=0;c{const t=l=>({base:e.base?.[l]??Yt,variants:Eh(),defaultVariants:e.defaultVariants??Yt,compoundVariants:e.compoundVariants?CL(e.compoundVariants,l):JV}),i=(e.slots??[]).map(l=>[l,t(l)]);for(const[l,c]of Object.entries(e.variants??{}))for(const[d,h]of Object.entries(c))i.forEach(([p,b])=>{var v;(v=b.variants)[l]??(v[l]={}),b.variants[l][d]=h[p]??Yt});return Object.fromEntries(i)},CL=(e,t)=>e.filter(a=>a.css[t]).map(a=>({...a,css:a.css[t]}));function EL(e){const{cva:t}=e;return function(i=Yt){const l=Object.entries(SL(i)).map(([x,S])=>[x,t(S)]);function c(x){const S=l.map(([C,O])=>[C,O(x)]);return Object.fromEntries(S)}const d=i.variants??Yt,h=Object.keys(d);function p(x){const S=eb(x,["recipe"]),[C,O]=Gs(S,h),w=h.includes("colorPalette"),T=h.includes("orientation");return w||(C.colorPalette=x.colorPalette||i.defaultVariants?.colorPalette),T&&(O.orientation=x.orientation),[C,O]}const b=ni(d,(x,S)=>[x,Object.keys(S)]);let v={};return i.className&&(v=Object.fromEntries(i.slots.map(x=>[x,`${i.className}__${x}`]))),Object.assign(c,{variantMap:b,variantKeys:h,splitVariantProps:p,classNameMap:v})}}const wL=()=>e=>Array.from(new Set(e)),kL=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,RL=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Ck=e=>(e+"").replace(kL,RL),Ek=(e,t)=>{let a="",i=0,l="char",c="",d="";const h=[];for(;i{let t=0;const a=["("];for(;t{a instanceof Map?t[i]=Object.fromEntries(a):t[i]=a}),t}const kk=/({([^}]*)})/g,jL=/[{}]/g,TL=/\w+\.\w+/,Rk=e=>{if(!pr(e))return[];const t=e.match(kk);return t?t.map(a=>a.replace(jL,"").trim()):[]},zL=e=>kk.test(e);function Ok(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};let a=e.value;const i=Object.keys(t);for(let l=0;lt.map(jk).join(` ${e} `).replace(_L,""),k1=(...e)=>`calc(${wh("+",...e)})`,R1=(...e)=>`calc(${wh("-",...e)})`,n0=(...e)=>`calc(${wh("*",...e)})`,O1=(...e)=>`calc(${wh("/",...e)})`,j1=e=>{const t=jk(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:n0(t,-1)},Us=Object.assign(e=>({add:(...t)=>Us(k1(e,...t)),subtract:(...t)=>Us(R1(e,...t)),multiply:(...t)=>Us(n0(e,...t)),divide:(...t)=>Us(O1(e,...t)),negate:()=>Us(j1(e)),toString:()=>e.toString()}),{add:k1,subtract:R1,multiply:n0,divide:O1,negate:j1}),AL={enforce:"pre",transform(e){const{prefix:t,allTokens:a,formatCssVar:i,formatTokenName:l,registerToken:c}=e;a.filter(({extensions:h})=>h.category==="spacing").forEach(h=>{const p=h.path.slice(),b=i(p,t);if(pr(h.value)&&h.value==="0rem")return;const v=[...h.path],x=v[v.length-1];x!=null&&(v[v.length-1]=`-${x}`);const S={...h,value:Us.negate(b.ref),name:l(v),path:v,extensions:{...h.extensions,negative:!0,prop:`-${h.extensions.prop}`,originalPath:p}};c(S)})}},IL=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),NL={enforce:"post",transform(e){e.allTokens.filter(a=>IL.has(a.extensions.category)&&!a.extensions.negative).forEach(a=>{Object.assign(a.extensions,{pixelValue:gk(a.value)})})}},VL={enforce:"post",transform(e){const{allTokens:t,registerToken:a,formatTokenName:i}=e,l=t.filter(({extensions:h})=>h.category==="colors"),c=new Map,d=new Map;l.forEach(h=>{const{colorPalette:p}=h.extensions;p&&(p.keys.forEach(b=>{c.set(i(b),b)}),p.roots.forEach(b=>{const v=i(b),x=d.get(v)||[];if(x.push(h),d.set(v,x),h.extensions.default&&b.length===1){const S=p.keys[0]?.filter(Boolean);if(!S.length)return;const C=b.concat(S);c.set(i(C),[])}}))}),c.forEach(h=>{const p=["colors","colorPalette",...h].filter(Boolean),b=i(p),v=i(p.slice(1));a({name:b,value:b,originalValue:b,path:p,extensions:{condition:"base",originalPath:p,category:"colors",prop:v,virtual:!0}},"pre")})}},LL={enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}},ML=[AL,VL,NL,LL],DL={type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:a,formatCssVar:i}=t,{negative:l,originalPath:c}=e.extensions,d=l?c:e.path;return{cssVar:i(d.filter(Boolean),a)}}},PL={enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:a,formatCssVar:i}=t,l=Rk(e.value);return l.length&&l.forEach(c=>{const d=i(c.split("."),a);e.value=e.value.replace(`{${d.ref}}`,d)}),e.value}},UL={type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let a=e.path.slice();if(a.pop(),a.shift(),a.length===0){const h=[...e.path];h.shift(),a=h}if(a.length===0)return{};const i=a.reduce((h,p,b,v)=>{const x=v.slice(0,b+1);return h.push(x),h},[]),l=a[0],c=t.formatTokenName(a),d=e.path.slice(e.path.indexOf(l)+1).reduce((h,p,b,v)=>(h.push(v.slice(b)),h),[]);return d.length===0&&d.push([""]),{colorPalette:{value:c,roots:i,keys:d}}}},$L=[DL,PL,UL],T1=e=>Ba(e)&&Object.prototype.hasOwnProperty.call(e,"value");function HL(e){return e?{breakpoints:hc(e,t=>({value:t})),sizes:ni(e,(t,a)=>[`breakpoint-${t}`,{value:a}])}:{breakpoints:{},sizes:{}}}function BL(e){const{prefix:t="",tokens:a={},semanticTokens:i={},breakpoints:l={}}=e,c=ee=>ee.join("."),d=(ee,ne)=>uk(ee.join("-"),{prefix:ne}),h=[],p=new Map,b=new Map,v=new Map,x=new Map,S=new Map,C=new Map,O=new Map,w=new Map,T=[];function A(ee,ne){h.push(ee),p.set(ee.name,ee),ne&&w.forEach(Te=>{Te.enforce===ne&&Ee(Te,ee)})}const _=HL(l),I=lc({...a,breakpoints:_.breakpoints,sizes:{...a.sizes,..._.sizes}});function M(){Mi(I,(ee,ne)=>{const Te=ne.includes("DEFAULT");ne=z1(ne);const se=ne[0],ye=c(ne),ke=pr(ee)?{value:ee}:ee,Xe={value:ke.value,originalValue:ke.value,name:ye,path:ne,extensions:{condition:"base",originalPath:ne,category:se,prop:c(ne.slice(1))}};Te&&(Xe.extensions.default=!0),A(Xe)},{stop:T1}),Mi(i,(ee,ne)=>{const Te=ne.includes("DEFAULT");ne=Tk(z1(ne));const se=ne[0],ye=c(ne),ke=pr(ee.value)?{value:{base:ee.value}}:ee,Xe={value:ke.value.base||"",originalValue:ke.value.base||"",name:ye,path:ne,extensions:{originalPath:ne,category:se,conditions:ke.value,condition:"base",prop:c(ne.slice(1))}};Te&&(Xe.extensions.default=!0),A(Xe)},{stop:T1})}function R(ee){return p.get(ee)}function V(ee){const{condition:ne}=ee.extensions;ne&&(b.has(ne)||b.set(ne,new Set),b.get(ne).add(ee))}function P(ee){const{category:ne,prop:Te}=ee.extensions;ne&&(O.has(ne)||O.set(ne,new Map),O.get(ne).set(Te,ee))}function F(ee){const{condition:ne,negative:Te,virtual:se,cssVar:ye}=ee.extensions;Te||se||!ne||!ye||(v.has(ne)||v.set(ne,new Map),v.get(ne).set(ye.var,ee.value))}function B(ee){const{category:ne,prop:Te,cssVar:se,negative:ye}=ee.extensions;if(!ne)return;C.has(ne)||C.set(ne,new Map);const ke=ye?ee.extensions.conditions?ee.originalValue:ee.value:se.ref;C.get(ne).set(Te,ke),S.set([ne,Te].join("."),ke)}function W(ee){const{colorPalette:ne,virtual:Te,default:se}=ee.extensions;!ne||Te||ne.roots.forEach(ye=>{const ke=c(ye);x.has(ke)||x.set(ke,new Map);const Xe=WL([...ee.path],[...ye]),pe=c(Xe),_e=R(pe);if(!_e||!_e.extensions.cssVar)return;const{var:qe}=_e.extensions.cssVar;if(x.get(ke).set(qe,ee.extensions.cssVar.ref),se&&ye.length===1){const Ke=c(["colors","colorPalette"]),jt=R(Ke);if(!jt)return;const ft=c(ee.path),tt=R(ft);if(!tt)return;const on=ne.keys[0]?.filter(Boolean);if(!on.length)return;const ma=c(ye.concat(on));x.has(ma)||x.set(ma,new Map),x.get(ma).set(jt.extensions.cssVar.var,tt.extensions.cssVar.ref)}})}let Y={};function U(){h.forEach(ee=>{V(ee),P(ee),F(ee),B(ee),W(ee)}),Y=wk(C)}const be=(ee,ne)=>{if(!ee||typeof ee!="string")return{invalid:!0,value:ee};const[Te,se]=ee.split("/");if(!Te||!se)return{invalid:!0,value:Te};const ye=ne(Te),ke=R(`opacity.${se}`)?.value;if(!ke&&isNaN(Number(se)))return{invalid:!0,value:Te};const Xe=ke?Number(ke)*100+"%":`${se}%`,pe=ye??Te;return{invalid:!1,color:pe,value:`color-mix(in srgb, ${pe} ${Xe}, transparent)`}},de=Fa((ee,ne)=>S.get(ee)??ne),ve=Fa(ee=>Y[ee]||null),N=Fa(ee=>Ek(ee,ne=>{if(!ne)return;if(ne.includes("/")){const se=be(ne,ye=>de(ye));if(se.invalid)throw new Error("Invalid color mix at "+ne+": "+se.value);return se.value}const Te=de(ne);return Te||(TL.test(ne)?Ck(ne):ne)})),te={prefix:t,allTokens:h,tokenMap:p,registerToken:A,getByName:R,formatTokenName:c,formatCssVar:d,flatMap:S,cssVarMap:v,categoryMap:O,colorPaletteMap:x,getVar:de,getCategoryValues:ve,expandReferenceInValue:N};function oe(...ee){ee.forEach(ne=>{w.set(ne.name,ne)})}function le(...ee){T.push(...ee)}function Ee(ee,ne){if(ne.extensions.references||x0(ee.match)&&!ee.match(ne))return;const se=(ye=>ee.transform(ye,te))(ne);switch(!0){case ee.type==="extensions":Object.assign(ne.extensions,se);break;case ee.type==="value":ne.value=se;break;default:ne[ee.type]=se;break}}function k(ee){T.forEach(ne=>{ne.enforce===ee&&ne.transform(te)})}function L(ee){w.forEach(ne=>{ne.enforce===ee&&h.forEach(Te=>{Ee(ne,Te)})})}function G(){h.forEach(ee=>{const ne=FL(ee);!ne||ne.length===0||ne.forEach(Te=>{A(Te)})})}function X(ee){const ne=Rk(ee),Te=[];for(let se=0;se{if(!zL(ee.value))return;const ne=X(ee.value);ee.extensions.references=ne.reduce((Te,se)=>(Te[se.name]=se,Te),{})})}function ae(){h.forEach(ee=>{Ok(ee)})}function ge(){k("pre"),L("pre"),G(),xe(),ae(),k("post"),L("post"),U()}return M(),oe(...$L),le(...ML),ge(),te}function z1(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function Tk(e){return e.filter(t=>t!=="base")}function FL(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,a=[];return Mi(t,(i,l)=>{const c=Tk(l);if(!c.length)return;const d={...e,value:i,extensions:{...e.extensions,condition:c.join(":")}};a.push(d)}),a}function WL(e,t){const a=e.findIndex((i,l)=>t.every((c,d)=>e[l+d]===c));return a===-1||(e.splice(a,t.length),e.splice(a,0,"colorPalette")),e}wL()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function GL(e){return ni(e,(t,a)=>[t,a])}function qL(e){const t=GL(e.config),a=e.tokens,i=new Map,l=new Map;function c(F,B){t[F]=B,d(F,B)}const d=(F,B)=>{const W=w(B);W&&(l.set(F,W),x(F,B))},h=()=>{for(const[F,B]of Object.entries(t))B&&d(F,B)},p=()=>{for(const[F,B]of Object.entries(t)){const{shorthand:W}=B??{};if(!W)continue;(Array.isArray(W)?W:[W]).forEach(U=>i.set(U,F))}},b=()=>{const F=wk(a.colorPaletteMap);c("colorPalette",{values:Object.keys(F),transform:Fa(B=>F[B])})},v=new Map,x=(F,B)=>{if(!B)return;const W=w(B,U=>`type:Tokens["${U}"]`);if(typeof W=="object"&&W.type){v.set(F,new Set([`type:${W.type}`]));return}if(W){const U=new Set(Object.keys(W));v.set(F,U)}const Y=v.get(F)??new Set;B.property&&v.set(F,Y.add(`CssProperties["${B.property}"]`))},S=()=>{for(const[F,B]of Object.entries(t))B&&x(F,B)},C=(F,B)=>{const W=v.get(F)??new Set;v.set(F,new Set([...W,...B]))},O=()=>{const F=new Map;for(const[B,W]of v.entries()){if(W.size===0){F.set(B,["string"]);continue}const Y=Array.from(W).map(U=>U.startsWith("CssProperties")?U:U.startsWith("type:")?U.replace("type:",""):JSON.stringify(U));F.set(B,Y)}return F},w=(F,B)=>{const{values:W}=F,Y=U=>{const be=B?.(U);return be?{[be]:be}:void 0};if(pr(W))return Y?.(W)??a.getCategoryValues(W)??Yt;if(Array.isArray(W)){const U={};for(let be=0;be({[F]:F.startsWith("--")?a.getVar(B,B):B})),A=Object.assign(a.getVar,{raw:F=>a.getByName(F)}),_=Fa((F,B)=>{const W=R(F);pr(B)&&!B.includes("_EMO_")&&(B=a.expandReferenceInValue(B));const Y=t[W];if(!Y)return T(W,B);const U=l.get(W)?.[B];if(!Y.transform)return T(F,U??B);const be=de=>xV(de,A);return Y.transform(U??B,{raw:B,token:A,utils:{colorMix:be}})});function I(){p(),b(),h(),S()}I();const M=i.size>0,R=Fa(F=>i.get(F)??F);return{keys:()=>[...Array.from(i.keys()),...Object.keys(t)],hasShorthand:M,transform:_,shorthands:i,resolveShorthand:R,register:c,getTypes:O,addPropertyType:C}}function zk(...e){const t=sk(...e),{theme:a={},utilities:i={},globalCss:l={},cssVarsRoot:c=":where(:root, :host)",cssVarsPrefix:d="chakra",preflight:h}=t,p=pL(t),b=BL({breakpoints:a.breakpoints,tokens:a.tokens,semanticTokens:a.semanticTokens,prefix:d}),v=YV(a.breakpoints??Yt),x=QV({conditions:t.conditions??Yt,breakpoints:v}),S=qL({config:i,tokens:b});function C(){const{textStyles:le,layerStyles:Ee,animationStyles:k}=a,L=lc({textStyle:le,layerStyle:Ee,animationStyle:k});for(const[G,X]of Object.entries(L)){const xe=dk(X??Yt,_k);S.register(G,{values:Object.keys(xe),transform(ae){return I(xe[ae])}})}}C(),S.addPropertyType("animationName",Object.keys(a.keyframes??Yt));const O=new Set(["css",...S.keys(),...x.keys()]),w=Fa(le=>O.has(le)||BV(le)),T=le=>{if(Array.isArray(le)){const Ee=Eh();for(let k=0;k[`@keyframes ${k}`,L]),Ee=Object.assign({},le,I(_(l)));return p.wrap("base",Ee)}function F(le){return Gs(le,w)}function B(){const le=bL({preflight:h});return p.wrap("reset",le)}const W=YL(b),Y=(le,Ee)=>W.get(le)?.value||Ee;Y.var=(le,Ee)=>W.get(le)?.variable||Ee;function U(le,Ee){return a.recipes?.[le]??Ee}function be(le,Ee){return a.slotRecipes?.[le]??Ee}function de(le){return Object.hasOwnProperty.call(a.recipes??Yt,le)}function ve(le){return Object.hasOwnProperty.call(a.slotRecipes??Yt,le)}function N(le){return de(le)||ve(le)}const te=[B(),P(),V()],oe={layerStyles:hm(a.layerStyles??Yt),textStyles:hm(a.textStyles??Yt),animationStyles:hm(a.animationStyles??Yt),tokens:_1(b,Object.keys(a.tokens??Yt),(le,Ee)=>!le.extensions.conditions&&!Ee.includes("colorPalette")),semanticTokens:_1(b,Object.keys(a.semanticTokens??Yt),le=>!!le.extensions.conditions),keyframes:A1(a.keyframes??Yt),breakpoints:A1(a.breakpoints??Yt)};return{$$chakra:!0,_config:t,_global:te,breakpoints:v,tokens:b,conditions:x,utility:S,token:Y,properties:O,layers:p,isValidProperty:w,splitCssProps:F,normalizeValue:T,getTokenCss:V,getGlobalCss:P,getPreflightCss:B,css:I,cva:M,sva:R,getRecipe:U,getSlotRecipe:be,hasRecipe:N,isRecipe:de,isSlotRecipe:ve,query:oe}}function YL(e){const t=new Map;return e.allTokens.forEach(a=>{const{cssVar:i,virtual:l,conditions:c}=a.extensions,d=c||l?i.ref:a.value;t.set(a.name,{value:d,variable:i.ref})}),t}const _k=e=>Ba(e)&&"value"in e,hm=e=>({list(){return Object.keys(dk(e,_k))},search(t){return this.list().filter(a=>a.includes(t))}}),_1=(e,t,a)=>({categoryKeys:t,list(i){const l=e.categoryMap.get(i),c=l?[...l.entries()]:[],d=[];for(let h=0;hc.includes(l))}}),A1=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(a=>a.includes(t))}}),XL={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},gm="var(--chakra-empty,/*!*/ /*!*/)",KL=EV({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":gm,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,gm])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,gm])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}}),ZL=RV({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),QL=kV({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),ab=Vn({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),JL=Vn({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px","--outline-color-legacy":"colors.colorPalette.muted","--outline-color":"colors.colorPalette.border",borderColor:"var(--outline-color, var(--outline-color-legacy))",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),na=Vn({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:e3,defaultVariants:t3}=ab,n3=Vn({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:e3,defaultVariants:t3}),Ak=Vn({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),a3=Vn({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),r3=Vn({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),i3=Vn({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),kn=Vn({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),o3=Vn({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:kn.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),l3=Vn({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),s3=Vn({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),c3=Vn({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),aa=Vn({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),u3=Vn({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),d3=Vn({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),f3=Vn({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),h3=Vn({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),g3=Vn({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),p3={badge:ab,button:JL,code:n3,container:a3,heading:r3,input:kn,inputAddon:o3,kbd:l3,link:s3,mark:c3,separator:u3,skeleton:d3,skipNavLink:f3,spinner:h3,textarea:g3,icon:i3,checkmark:na,radiomark:aa,colorSwatch:Ak},m3=Ch.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}},border:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}},border:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}},border:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}},border:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}},border:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}},border:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}},border:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.400}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}},border:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.400}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}},border:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.400}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}},border:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.400}"}}}}),b3=Ch.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),v3=Ch.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),x3=AE.extendWith("itemBody"),y3=He("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),S3=He("alert").parts("title","description","root","indicator","content"),C3=He("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),E3=He("blockquote").parts("root","icon","content","caption"),w3=He("card").parts("root","header","body","footer","title","description"),k3=He("checkbox-card",["root","control","label","description","addon","indicator","content"]),R3=He("data-list").parts("root","item","itemLabel","itemValue"),O3=K0.extendWith("header","body","footer","backdrop"),j3=K0.extendWith("header","body","footer","backdrop"),T3=lw.extendWith("textarea"),z3=He("empty-state",["root","content","indicator","title","description"]),_3=cw.extendWith("requiredIndicator"),A3=dw.extendWith("content"),I3=fw.extendWith("itemContent","dropzoneContent","fileText"),N3=He("list").parts("root","item","indicator"),V3=xw.extendWith("itemCommand"),L3=He("select").parts("root","field","indicator"),M3=jw.extendWith("header","body","footer"),Ik=J0.extendWith("itemAddon","itemIndicator"),D3=Ik.extendWith("itemContent","itemDescription"),P3=zw.extendWith("itemIndicator"),U3=Iw.extendWith("indicatorGroup"),$3=fI.extendWith("indicatorGroup","empty"),H3=Hw.extendWith("markerIndicator"),B3=He("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),F3=He("status").parts("root","indicator"),W3=He("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),G3=ak.extendWith("indicator"),q3=He("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),Y3=He("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),X3=He("tabs").parts("root","trigger","list","content","contentGroup","indicator"),K3=He("tag").parts("root","label","closeTrigger","startElement","endElement"),Z3=He("timeline").parts("root","item","content","separator","indicator","connector","title","description"),Q3=N5.extendWith("channelText"),J3=He("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]),eM=_E.extendWith("resizeTriggerSeparator","resizeTriggerIndicator");KE.extendWith("valueText");const tM=jI,nM=Fe({className:"chakra-accordion",slots:x3.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),aM=Fe({className:"chakra-action-bar",slots:y3.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),rM=Fe({slots:S3.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),iM=Fe({slots:VE.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",borderColor:"var(--outline-shadow, var(--outline-shadow-legacy))"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),oM=Fe({className:"chakra-blockquote",slots:E3.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),lM=Fe({className:"chakra-breadcrumb",slots:C3.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),sM=Fe({className:"chakra-card",slots:w3.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}}),cM=Fe({className:"carousel",slots:f5.keys(),base:{root:{position:"relative",display:"flex",gap:"2",_horizontal:{flexDirection:"column"},_vertical:{flexDirection:"row"}},item:{_horizontal:{width:"100%"},_vertical:{height:"100%"}},control:{display:"flex",alignItems:"center",_horizontal:{flexDirection:"row",width:"100%"},_vertical:{flexDirection:"column",height:"100%"}},indicatorGroup:{display:"flex",justifyContent:"center",gap:"3",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},indicator:{width:"2.5",height:"2.5",borderRadius:"full",bg:"colorPalette.subtle",cursor:"button",_current:{bg:"colorPalette.solid"}}},defaultVariants:{}}),uM=Fe({slots:FE.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:na.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:na.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:na.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:na.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:na.variants?.size?.lg}},variant:{outline:{control:na.variants?.variant?.outline},solid:{control:na.variants?.variant?.solid},subtle:{control:na.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),dM=Fe({slots:k3.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:na.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:na.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:na.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:na.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:na.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:na.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:na.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:na.variants?.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),fM=Fe({slots:J3.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflowX:"auto",overflowY:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative",paddingInlineEnd:"var(--code-block-padding)","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",top:"0",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",whiteSpace:"nowrap",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}}),hM=Fe({slots:hE.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"expand-height"}},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"collapse-height"}}}}}),gM=Fe({className:"colorPicker",slots:Q3.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...Ak.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...kn.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:kn.variants?.size?.["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:kn.variants?.size?.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:kn.variants?.size?.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:kn.variants?.size?.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:kn.variants?.size?.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:kn.variants?.size?.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:kn.variants?.size?.["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:kn.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:kn.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),pM=Fe({className:"chakra-combobox",slots:$3.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},control:{pos:"relative","--padding-factor":"1","--combobox-input-padding-end":"var(--combobox-input-padding-x)","&:has([data-part=trigger]), &:has([data-part=clear-trigger])":{"--combobox-input-padding-end":"calc(var(--combobox-input-height) * var(--padding-factor))"},"&:has([data-part=trigger]):has([data-part=clear-trigger]:not([hidden]))":{"--padding-factor":"1.5"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",ps:"var(--combobox-input-padding-x)",pe:"var(--combobox-input-padding-end)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),mM=Fe({slots:R3.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),bM=Fe({slots:O3.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),vM=Fe({slots:j3.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),I1=rs({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),xM=Fe({slots:T3.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...I1,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...I1,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),yM=Fe({slots:z3.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),SM=Fe({className:"chakra-field",slots:_3.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),CM=Fe({className:"fieldset",slots:A3.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),EM=Fe({className:"chakra-file-upload",slots:I3.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}}),wM=Fe({className:"chakra-hover-card",slots:hw.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderLeftWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),kM=Fe({className:"chakra-list",slots:N3.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),RM=Fe({className:"chakra-listbox",slots:tM.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}}),OM=Fe({className:"chakra-menu",slots:V3.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),$f=Fe({className:"chakra-select",slots:U3.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}}),jM=Fe({className:"chakra-native-select",slots:L3.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:$f.variants?.variant.outline.trigger},subtle:{field:$f.variants?.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:$f.defaultVariants}),N1=rs({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),TM=Fe({className:"chakra-number-input",slots:ww.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...kn.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...N1,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...N1,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:kn.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:kn.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:kn.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:kn.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:ni(kn.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:V1,defaultVariants:zM}=kn,_M=Fe({className:"chakra-pin-input",slots:Ow.keys(),base:{input:{...kn.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:ni(V1.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:ni(V1.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:zM}),AM=Fe({className:"chakra-popover",slots:M3.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderLeftWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),IM=Fe({slots:Q0.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),NM=Fe({className:"chakra-progress-circle",slots:Q0.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}}),VM=Fe({slots:Tw.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}}),LM=Fe({className:"chakra-radio-card",slots:D3.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:aa.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:aa.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:aa.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:aa.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:aa.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:aa.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:aa.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:aa.variants?.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),MM=Fe({className:"chakra-radio-group",slots:Ik.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:aa.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:aa.variants?.variant?.outline},subtle:{itemControl:aa.variants?.variant?.subtle},solid:{itemControl:aa.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:aa.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:aa.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:aa.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:aa.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),DM=Fe({className:"chakra-rating-group",slots:P3.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),PM=Fe({className:"chakra-scroll-area",slots:_w.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}}),UM=Fe({className:"chakra-segment-group",slots:Aw.keys(),base:{root:{"--segment-radius":"radii.l2","--segment-indicator-bg":{_light:"colors.bg",_dark:"colors.bg.emphasized"},"--segment-indicator-shadow":"shadows.sm",borderRadius:"var(--segment-radius)",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"var(--segment-indicator-shadow)",pos:"absolute",bg:"var(--segment-indicator-bg)",width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),$M=Fe({className:"chakra-slider",slots:H3.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),HM=Fe({slots:eM.keys(),className:"splitter",base:{resizeTrigger:{"--splitter-border-color":"colors.border","--splitter-thumb-color":"colors.bg","--splitter-thumb-size":"sizes.2","--splitter-thumb-inset":"calc(var(--splitter-thumb-size) * -0.5)","--splitter-border-size":"1px","--splitter-handle-size":"sizes.6",outline:"0",display:"grid",placeItems:"center",position:"relative",_focus:{"--splitter-border-color":"colors.border.emphasized","--splitter-thumb-color":"colors.colorPalette.subtle"},_dragging:{"--splitter-thumb-color":"colors.colorPalette.focusRing"},_horizontal:{minWidth:"var(--splitter-thumb-size)",marginInline:"var(--splitter-thumb-inset)"},_vertical:{minHeight:"var(--splitter-thumb-size)",marginBlock:"var(--splitter-thumb-inset)"}},resizeTriggerSeparator:{position:"absolute",bg:"var(--splitter-border-color)","[data-part='resize-trigger'][data-orientation=horizontal] &":{insetInlineEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetBlock:"0",insetInlineStart:"auto",w:"var(--splitter-border-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{insetBlockEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetInline:"0",insetBlockStart:"auto",h:"var(--splitter-border-size)"}},resizeTriggerIndicator:{position:"relative",rounded:"full",bg:"var(--splitter-thumb-color)",shadow:"xs",borderWidth:"1px",zIndex:"1","[data-part='resize-trigger'][data-orientation=horizontal] &":{w:"full",h:"var(--splitter-handle-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{w:"var(--splitter-handle-size)",h:"full"},"[data-part='resize-trigger'][data-focus]:focus-visible &":{outlineWidth:"2px",outlineColor:"colorPalette.focusRing",outlineStyle:"solid"},"[data-part='resize-trigger'][data-disabled] &":{visibility:"hidden"}}}}),BM=Fe({className:"chakra-stat",slots:B3.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),FM=Fe({className:"chakra-status",slots:F3.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),WM=Fe({className:"chakra-steps",slots:W3.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),GM=Fe({slots:G3.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),qM=Fe({className:"chakra-table",slots:q3.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),YM=Fe({slots:X3.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-trigger-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-trigger-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),yf=ab.variants?.variant,XM=Fe({slots:K3.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:yf?.subtle},solid:{root:yf?.solid},outline:{root:yf?.outline},surface:{root:yf?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),KM=Fe({slots:rk.keys(),className:"tags-input",base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},control:{"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",minH:"var(--tags-input-height)","--input-height":"var(--tags-input-height)",px:"var(--tags-input-px)",py:"var(--tags-input-py)",gap:"var(--tags-input-gap)",display:"flex",flexWrap:"wrap",alignItems:"center",borderRadius:"l2",pos:"relative",transitionProperty:"border-color, box-shadow",transitionDuration:"normal",_disabled:{opacity:"0.5"},_invalid:{borderColor:"var(--error-color)"}},input:{flex:"1",minWidth:"20",outline:"none",bg:"transparent",color:"fg",px:"calc(var(--tags-input-item-px) / 1.25)",height:"var(--tags-input-item-height)",_readOnly:{display:"none"}},item:{maxWidth:"100%",minWidth:"0"},itemText:{lineClamp:"1",minWidth:"0"},itemInput:{outline:"none",bg:"transparent",minWidth:"2ch",color:"inherit",px:"var(--tags-input-item-px)",height:"var(--tags-input-item-height)"},itemPreview:{height:"var(--tags-input-item-height)",userSelect:"none",display:"inline-flex",alignItems:"center",gap:"1",rounded:"l1",px:"var(--tags-input-item-px)",maxWidth:"100%"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:"0",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},me:"-1",opacity:"0.4",_hover:{opacity:"1"},"[data-highlighted] &":{opacity:"1"},_icon:{boxSize:"80%"}},clearTrigger:{display:"flex",alignItems:"center",justifyContent:"center",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},color:"fg.muted",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1",_icon:{boxSize:"5"}}},variants:{size:{xs:{root:{"--tags-input-height":"sizes.8","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"xs"}},sm:{root:{"--tags-input-height":"sizes.9","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"sm"}},md:{root:{"--tags-input-height":"sizes.10","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.7","--tags-input-item-px":"spacing.2",textStyle:"sm"}},lg:{root:{"--tags-input-height":"sizes.11","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.8","--tags-input-item-px":"spacing.2",textStyle:"md"}}},variant:{outline:{control:{borderWidth:"1px",bg:"bg",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}},subtle:{control:{bg:"bg.muted",borderWidth:"1px",borderColor:"transparent",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"bg",borderWidth:"1px",_highlighted:{bg:"colorPalette.subtle",borderColor:"colorPalette.emphasized"}}},flushed:{control:{borderRadius:"0",px:"0",bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",_focus:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}}}},defaultVariants:{size:"md",variant:"outline"}}),ZM=Fe({slots:Z3.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{"--timeline-content-gap":"spacing.6",display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"--timeline-content-gap":"0"}},separator:{display:"var(--timeline-separator-display)",position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"var(--timeline-content-gap)",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},showLastSeparator:{true:{item:{_last:{"--timeline-separator-display":"initial"}}},false:{item:{_last:{"--timeline-separator-display":"none"}}}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid",showLastSeparator:!1}}),QM=Fe({slots:Y3.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}}),JM=Fe({slots:lk.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderLeftWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),L1=rs({display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}}),M1=rs({flex:"1"}),D1=rs({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),P1=rs({_selected:{layerStyle:"fill.solid"}}),e4=Fe({slots:gw.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:L1,item:L1,itemText:M1,branchText:M1,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:D1,item:D1},solid:{branchControl:P1,item:P1}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),t4={accordion:nM,actionBar:aM,alert:rM,avatar:iM,blockquote:oM,breadcrumb:lM,card:sM,carousel:cM,checkbox:uM,checkboxCard:dM,codeBlock:fM,collapsible:hM,dataList:mM,dialog:bM,drawer:vM,editable:xM,emptyState:yM,field:SM,fieldset:CM,fileUpload:EM,hoverCard:wM,list:kM,listbox:RM,menu:OM,nativeSelect:jM,numberInput:TM,pinInput:_M,popover:AM,progress:IM,progressCircle:NM,radioCard:LM,radioGroup:MM,ratingGroup:DM,scrollArea:PM,segmentGroup:UM,select:$f,combobox:pM,slider:$M,splitter:HM,stat:BM,steps:WM,switch:GM,table:qM,tabs:YM,tag:XM,tagsInput:KM,toast:QM,tooltip:JM,status:FM,timeline:ZM,colorPicker:gM,qrCode:VM,treeView:e4},n4=wV({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),a4=jn.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),r4=jn.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),i4=jn.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),o4=jn.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),l4=jn.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),s4=jn.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),c4=jn.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),u4=jn.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),d4=jn.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),f4=jn.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),U1='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',h4=jn.fonts({heading:{value:`Inter, ${U1}`},body:{value:`Inter, ${U1}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),g4=CV({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"var(--collapsed-height, 0)"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"var(--collapsed-height, 0)"}},"expand-width":{from:{width:"var(--collapsed-width, 0)"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"var(--collapsed-width, 0)"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),p4=jn.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),m4=jn.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),b4=jn.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),Nk=jn.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),v4=jn.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),x4=jn.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),y4=jn.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),S4=jn.sizes({...v4,...Nk,...y4,...x4}),C4=jn.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),E4={aspectRatios:r4,animations:a4,blurs:i4,borders:o4,colors:l4,durations:c4,easings:u4,fonts:h4,fontSizes:d4,fontWeights:f4,letterSpacings:p4,lineHeights:m4,radii:b4,spacing:Nk,sizes:S4,zIndex:C4,cursor:s4},w4={colors:m3,shadows:v3,radii:b3},k4="chakra",R4=":where(html, .chakra-theme)",O4=tb({preflight:!0,cssVarsPrefix:k4,cssVarsRoot:R4,globalCss:KL,theme:{breakpoints:XL,keyframes:g4,tokens:E4,semanticTokens:w4,recipes:p3,slotRecipes:t4,textStyles:n4,layerStyles:ZL,animationStyles:QL}}),Vk=sk(NV,O4);zk(Vk);function j4(e){const{key:t,recipe:a}=e,i=Pu();return m.useMemo(()=>{const l=a||(t!=null?i.getSlotRecipe(t):{});return i.sva(structuredClone(l))},[t,a,i])}const T4=e=>e.charAt(0).toUpperCase()+e.slice(1),kh=e=>{const{key:t,recipe:a}=e,i=T4(t||a.className||"Component"),[l,c]=Ws({name:`${i}StylesContext`,errorMessage:`use${i}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${i}.Root />" `}),[d,h]=Ws({name:`${i}ClassNameContext`,errorMessage:`use${i}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${i}.Root />" `,strict:!1}),[p,b]=Ws({strict:!1,name:`${i}PropsContext`,providerName:`${i}PropsContext`,defaultValue:{}});function v(O){const{unstyled:w,...T}=O,A=j4({key:t,recipe:T.recipe||a}),[_,I]=m.useMemo(()=>A.splitVariantProps(T),[T,A]);return{styles:m.useMemo(()=>w?AC:A(_),[w,_,A]),classNames:A.classNameMap,props:I}}function x(O,w={}){const{defaultProps:T}=w,A=_=>{const I=b(),M=m.useMemo(()=>Tu(T,I,_),[I,_]),{styles:R,classNames:V,props:P}=v(M);return u.jsx(l,{value:R,children:u.jsx(d,{value:V,children:u.jsx(O,{...P})})})};return A.displayName=O.displayName||O.name,A}return{StylesProvider:l,ClassNamesProvider:d,PropsProvider:p,usePropsContext:b,useRecipeResult:v,withProvider:(O,w,T)=>{const{defaultProps:A,..._}=T??{},I=Kt(O,{},_),M=m.forwardRef((R,V)=>{const P=b(),F=m.useMemo(()=>Tu(A??{},P,R),[P,R]),{styles:B,props:W,classNames:Y}=v(F),U=Y[w],be=u.jsx(l,{value:B,children:u.jsx(d,{value:Y,children:u.jsx(I,{ref:V,...W,css:[B[w],F.css],className:ia(F.className,U)})})});return T?.wrapElement?.(be,F)??be});return M.displayName=O.displayName||O.name,M},withContext:(O,w,T)=>{const A=Kt(O,{},T),_=m.forwardRef((I,M)=>{const{unstyled:R,...V}=I,P=c(),B=h()?.[w];return u.jsx(A,{...V,css:[!R&&w?P[w]:void 0,I.css],ref:M,className:ia(I.className,B)})});return _.displayName=O.displayName||O.name,_},withRootProvider:x,useStyles:c,useClassNames:h}},Lk=Kt("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});Lk.displayName="AbsoluteCenter";const z4=e=>u.jsx(Kt.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:u.jsx("path",{d:"m6 9 6 6 6-6"})}),_4=e=>u.jsx(Kt.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:u.jsx("path",{d:"m9 18 6-6-6-6"})}),A4=e=>u.jsxs(Kt.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[u.jsx("circle",{cx:"12",cy:"12",r:"1"}),u.jsx("circle",{cx:"19",cy:"12",r:"1"}),u.jsx("circle",{cx:"5",cy:"12",r:"1"})]}),I4=rs({"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}),fr=m.forwardRef(function(t,a){const{ratio:i=4/3,children:l,className:c,...d}=t,h=m.Children.only(l);return u.jsx(Kt.div,{ref:a,position:"relative",className:ia("chakra-aspect-ratio",c),_before:{height:0,content:'""',display:"block",paddingBottom:hc(i,p=>`${1/p*100}%`)},...d,css:[I4,t.css],children:h})});fr.displayName="AspectRatio";const cl=e=>e?"":void 0,N4=Kt("div",{base:{display:"inline-flex",gap:"var(--group-gap, 0.5rem)",isolation:"isolate",position:"relative","& [data-group-item]":{_focusVisible:{zIndex:1}}},variants:{orientation:{horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},attached:{true:{gap:"0!"}},grow:{true:{display:"flex","& > *":{flex:1}}},stacking:{"first-on-top":{"& > [data-group-item]":{zIndex:"calc(var(--group-count) - var(--group-index))"}},"last-on-top":{"& > [data-group-item]":{zIndex:"var(--group-index)"}}}},compoundVariants:[{orientation:"horizontal",attached:!0,css:{"& > *[data-first]":{borderEndRadius:"0!",marginEnd:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginEnd:"-1px"},"& > *[data-last]":{borderStartRadius:"0!"}}},{orientation:"vertical",attached:!0,css:{"& > *[data-first]":{borderBottomRadius:"0!",marginBottom:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginBottom:"-1px"},"& > *[data-last]":{borderTopRadius:"0!"}}}],defaultVariants:{orientation:"horizontal"}}),Mk=m.memo(m.forwardRef(function(t,a){const{align:i="center",justify:l="flex-start",children:c,wrap:d,skip:h,...p}=t,b=m.useMemo(()=>{let v=m.Children.toArray(c).filter(m.isValidElement);if(v.length===1)return v;const x=v.filter(C=>!h?.(C)),S=x.length;return x.length===1?v:v.map(C=>{const O=C.props;if(h?.(C))return C;const w=x.indexOf(C);return m.cloneElement(C,{...O,"data-group-item":"","data-first":cl(w===0),"data-last":cl(w===S-1),"data-between":cl(w>0&&wTu(i,t),[i,t]),c=D4(l),{loading:d,loadingText:h,children:p,spinner:b,spinnerPlacement:v,...x}=c.props;return u.jsx(Kt.button,{type:"button",ref:a,...x,"data-loading":cl(d),disabled:d||x.disabled,className:ia(c.className,l.className),css:[c.styles,l.css],children:!l.asChild&&d?u.jsx(Dk,{spinner:b,text:h,spinnerPlacement:v,children:p}):p})});je.displayName="Button";const Rh=m.forwardRef(function(t,a){return u.jsx(je,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:a,...t})});Rh.displayName="IconButton";const Pk=m.forwardRef(function(t,a){const i=S0({key:"checkmark",recipe:t.recipe}),[l,c]=i.splitVariantProps(t),{checked:d,indeterminate:h,disabled:p,unstyled:b,children:v,...x}=c,S=b?_C:i(l);return u.jsx(Kt.svg,{ref:a,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3px",strokeLinecap:"round",strokeLinejoin:"round","data-state":h?"indeterminate":d?"checked":"unchecked","data-disabled":cl(p),css:[S,t.css],...x,children:h?u.jsx("path",{d:"M5 12h14"}):d?u.jsx("polyline",{points:"20 6 9 17 4 12"}):null})});Pk.displayName="Checkmark";const{withProvider:Uk,withContext:$k,useStyles:U4}=kh({key:"checkbox"});Uk(XE,"root",{forwardAsChild:!0});const tc=Uk(YE,"root",{forwardAsChild:!0}),nc=$k(qE,"label",{forwardAsChild:!0}),$4=m.forwardRef(function(t,a){const{checked:i,indeterminate:l,...c}=t,d=xh(),h=U4();return i&&d.checked?u.jsx(Kt.svg,{ref:a,asChild:!0,...c,css:[h.indicator,t.css],children:i}):l&&d.indeterminate?u.jsx(Kt.svg,{ref:a,asChild:!0,...c,css:[h.indicator,t.css],children:l}):u.jsx(Pk,{ref:a,checked:d.checked,indeterminate:d.indeterminate,disabled:d.disabled,unstyled:!0,...c,css:[h.indicator,t.css]})}),ac=$k(DE,"control",{forwardAsChild:!0,defaultProps:{children:u.jsx($4,{})}});Kt(WE,{base:{display:"flex",flexDirection:"column",gap:"1.5"}},{forwardAsChild:!0});const rc=GE;function H4(e){const{gap:t,direction:a}=e,i={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":hc(a,l=>i[l])}}function B4(e){return m.Children.toArray(e).filter(t=>m.isValidElement(t))}const ze=m.forwardRef(function(t,a){const{direction:i="column",align:l,justify:c,gap:d="0.5rem",wrap:h,children:p,separator:b,className:v,...x}=t,S=m.useMemo(()=>H4({gap:d,direction:i}),[d,i]),C=m.useMemo(()=>m.isValidElement(b)?B4(p).map((O,w,T)=>{const A=typeof O.key<"u"?O.key:w,_=b,I=m.cloneElement(_,{css:[S,_.props.css]});return u.jsxs(m.Fragment,{children:[O,w===T.length-1?null:I]},A)}):p,[p,b,S]);return u.jsx(Kt.div,{ref:a,display:"flex",alignItems:l,justifyContent:c,flexDirection:i,flexWrap:h,gap:b?void 0:d,className:ia("chakra-stack",v),...x,children:C})});ze.displayName="Stack";const{withContext:F4}=Oo({key:"container"}),Pr=F4("div");Pr.displayName="Container";const{useRecipeResult:W4}=Oo({key:"icon"}),Fn=m.forwardRef(function(t,a){const{styles:i,className:l,props:c}=W4({asChild:!t.as,...t});return u.jsx(Kt.svg,{ref:a,focusable:!1,"aria-hidden":"true",...c,css:[i,t.css],className:ia(l,t.className)})});Fn.displayName="Icon";const Hn=m.forwardRef(function(t,a){const{direction:i,align:l,justify:c,wrap:d,basis:h,grow:p,shrink:b,inline:v,...x}=t;return u.jsx(Kt.div,{ref:a,...x,css:{display:v?"inline-flex":"flex",flexDirection:i,alignItems:l,justifyContent:c,flexWrap:d,flexBasis:h,flexGrow:p,flexShrink:b,...t.css}})});Hn.displayName="Flex";function $1(e){return hc(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}const a0=m.forwardRef(function(t,a){const{area:i,colSpan:l,colStart:c,colEnd:d,rowEnd:h,rowSpan:p,rowStart:b,...v}=t,x=m.useMemo(()=>lc({gridArea:i,gridColumn:$1(l),gridRow:$1(p),gridColumnStart:c,gridColumnEnd:d,gridRowStart:b,gridRowEnd:h}),[i,l,c,d,h,p,b]);return u.jsx(Kt.div,{ref:a,css:[x,t.css],...v})});a0.displayName="GridItem";const{withContext:G4}=Oo({key:"input"}),ai=G4(sw),H1=m.forwardRef(function({unstyled:t,...a},i){const l=S0({key:"inputAddon",recipe:a.recipe}),[c,d]=l.splitVariantProps(a),h=t?AC:l(c);return u.jsx(Kt.div,{ref:i,...d,css:[h,a.css]})}),pm=Kt("div",{base:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",zIndex:2,color:"fg.muted",height:"full",fontSize:"sm",px:"3"},variants:{placement:{start:{insetInlineStart:"0"},end:{insetInlineEnd:"0"}}}}),rb=m.forwardRef(function(t,a){const{startElement:i,startElementProps:l,endElement:c,endElementProps:d,startAddon:h,startAddonProps:p,endAddon:b,endAddonProps:v,children:x,startOffset:S="0px",endOffset:C="0px",...O}=t,w=m.Children.only(x),T=!!(h||b);return u.jsxs(Mk,{width:"full",ref:a,attached:T,skip:A=>A.type===pm,...O,children:[h&&u.jsx(H1,{...p,children:h}),i&&u.jsx(pm,{pointerEvents:"none",...l,children:i}),m.cloneElement(w,{...i&&{ps:`calc(var(--input-height) - ${S})`},...c&&{pe:`calc(var(--input-height) - ${C})`},...x.props}),c&&u.jsx(pm,{placement:"end",...d,children:c}),b&&u.jsx(H1,{...v,children:b})]})}),[q4,Hk]=Ws({name:"NativeSelectBasePropsContext",hookName:"useNativeSelectBaseProps",providerName:"",strict:!1}),{withProvider:Y4,useClassNames:Bk,useStyles:Fk}=kh({key:"nativeSelect"}),it=Y4("div","root",{wrapElement(e,t){const a=Bu(),i=!!(a?.disabled??t.disabled),l=!!(a?.invalid??t.invalid);return u.jsx(q4,{value:{disabled:i,invalid:l},children:e})}}),X4=Kt(uw,{},{forwardAsChild:!0}),ot=m.forwardRef(function(t,a){const{children:i,placeholder:l,unstyled:c,...d}=t,{disabled:h,invalid:p}=Hk(),b=Fk(),v=Bk();return u.jsxs(X4,{disabled:h,"data-invalid":cl(p),...d,ref:a,className:ia(v.field,t.className),css:[c?void 0:b.field,t.css],children:[l&&u.jsx("option",{value:"",children:l}),i]})});function lt(e){const{unstyled:t,...a}=e,i=Fk(),{disabled:l,invalid:c}=Hk(),d=Bk();return u.jsx(Kt.div,{...a,"data-disabled":cl(l),"data-invalid":cl(c),className:ia(d.indicator,e.className),css:[t?void 0:i.indicator,e.css],children:e.children??u.jsx(z4,{})})}const{useRecipeResult:K4}=Oo({key:"separator"}),ib=m.forwardRef(function(t,a){const{styles:i,className:l,props:c}=K4(t),d=t.orientation||"horizontal";return u.jsx(Kt.span,{ref:a,role:pr(d)?"separator":"presentation","aria-orientation":pr(d)?d:void 0,...eb(c,["orientation"]),className:ia(l,t.className),css:[i,t.css]})});ib.displayName="Separator";const ob=m.forwardRef(function(t,a){const{columns:i,minChildWidth:l,...c}=t,d=Pu(),h=l?Q4(l,d):J4(i);return u.jsx(vn,{ref:a,templateColumns:h,...c})});ob.displayName="SimpleGrid";function Z4(e){return typeof e=="number"?`${e}px`:e}function Q4(e,t){return hc(e,a=>{const i=t.tokens.getVar(`sizes.${a}`,Z4(a));return a===null?null:`repeat(auto-fit, minmax(${i}, 1fr))`})}function J4(e){return hc(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}const{withProvider:Wk,withContext:Bi}=kh({key:"slider"});Wk(Jw,"root",{forwardAsChild:!0});const lb=Wk(Qw,"root",{forwardAsChild:!0}),sb=Bi(tk,"track",{forwardAsChild:!0}),cb=Bi($w,"range",{forwardAsChild:!0}),ub=Bi(ek,"thumb",{forwardAsChild:!0});Bi(nk,"valueText",{forwardAsChild:!0});Bi(Dw,"label",{forwardAsChild:!0});const eD=Bi(Uw,"markerGroup",{forwardAsChild:!0}),tD=Bi(Pw,"marker",{forwardAsChild:!0}),nD=Bi("div","markerIndicator");Bi(Mw,"draggingIndicator",{forwardAsChild:!0});m.forwardRef(function(t,a){const{marks:i,...l}=t;return i?.length?u.jsx(eD,{ref:a,...l,children:i.map((c,d)=>{const h=typeof c=="number"?c:c.value,p=typeof c=="number"?void 0:c.label;return u.jsxs(tD,{value:h,children:[u.jsx(nD,{}),p!=null&&u.jsx("span",{className:"chakra-slider__marker-label",children:p})]},d)})}):null});const db=Bi(Lw,"control",{forwardAsChild:!0}),Oe=m.forwardRef(function(t,a){return u.jsx(ze,{align:"center",...t,direction:"row",ref:a})});Oe.displayName="HStack";const Gk=m.forwardRef(function(t,a){return u.jsx(ze,{align:"center",...t,direction:"column",ref:a})});Gk.displayName="VStack";var B1="popstate";function aD(e={}){function t(i,l){let{pathname:c,search:d,hash:h}=i.location;return r0("",{pathname:c,search:d,hash:h},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function a(i,l){return typeof l=="string"?l:Lu(l)}return iD(t,a,null,e)}function sn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Dr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function rD(){return Math.random().toString(36).substring(2,10)}function F1(e,t){return{usr:e.state,key:e.key,idx:t}}function r0(e,t,a=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?pc(t):t,state:a,key:t&&t.key||i||rD()}}function Lu({pathname:e="/",search:t="",hash:a=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function pc(e){let t={};if(e){let a=e.indexOf("#");a>=0&&(t.hash=e.substring(a),e=e.substring(0,a));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function iD(e,t,a,i={}){let{window:l=document.defaultView,v5Compat:c=!1}=i,d=l.history,h="POP",p=null,b=v();b==null&&(b=0,d.replaceState({...d.state,idx:b},""));function v(){return(d.state||{idx:null}).idx}function x(){h="POP";let T=v(),A=T==null?null:T-b;b=T,p&&p({action:h,location:w.location,delta:A})}function S(T,A){h="PUSH";let _=r0(w.location,T,A);b=v()+1;let I=F1(_,b),M=w.createHref(_);try{d.pushState(I,"",M)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;l.location.assign(M)}c&&p&&p({action:h,location:w.location,delta:1})}function C(T,A){h="REPLACE";let _=r0(w.location,T,A);b=v();let I=F1(_,b),M=w.createHref(_);d.replaceState(I,"",M),c&&p&&p({action:h,location:w.location,delta:0})}function O(T){return oD(T)}let w={get action(){return h},get location(){return e(l,d)},listen(T){if(p)throw new Error("A history only accepts one active listener");return l.addEventListener(B1,x),p=T,()=>{l.removeEventListener(B1,x),p=null}},createHref(T){return t(l,T)},createURL:O,encodeLocation(T){let A=O(T);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:S,replace:C,go(T){return d.go(T)}};return w}function oD(e,t=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),sn(a,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Lu(e);return i=i.replace(/ $/,"%20"),!t&&i.startsWith("//")&&(i=a+i),new URL(i,a)}function qk(e,t,a="/"){return lD(e,t,a,!1)}function lD(e,t,a,i){let l=typeof t=="string"?pc(t):t,c=Ro(l.pathname||"/",a);if(c==null)return null;let d=Yk(e);sD(d);let h=null;for(let p=0;h==null&&p{let v={relativePath:b===void 0?d.path||"":b,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(i)&&p)return;sn(v.relativePath.startsWith(i),`Absolute route path "${v.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(i.length)}let x=Eo([i,v.relativePath]),S=a.concat(v);d.children&&d.children.length>0&&(sn(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),Yk(d.children,t,S,x,p)),!(d.path==null&&!d.index)&&t.push({path:x,score:pD(x,d.index),routesMeta:S})};return e.forEach((d,h)=>{if(d.path===""||!d.path?.includes("?"))c(d,h);else for(let p of Xk(d.path))c(d,h,!0,p)}),t}function Xk(e){let t=e.split("/");if(t.length===0)return[];let[a,...i]=t,l=a.endsWith("?"),c=a.replace(/\?$/,"");if(i.length===0)return l?[c,""]:[c];let d=Xk(i.join("/")),h=[];return h.push(...d.map(p=>p===""?c:[c,p].join("/"))),l&&h.push(...d),h.map(p=>e.startsWith("/")&&p===""?"/":p)}function sD(e){e.sort((t,a)=>t.score!==a.score?a.score-t.score:mD(t.routesMeta.map(i=>i.childrenIndex),a.routesMeta.map(i=>i.childrenIndex)))}var cD=/^:[\w-]+$/,uD=3,dD=2,fD=1,hD=10,gD=-2,W1=e=>e==="*";function pD(e,t){let a=e.split("/"),i=a.length;return a.some(W1)&&(i+=gD),t&&(i+=dD),a.filter(l=>!W1(l)).reduce((l,c)=>l+(cD.test(c)?uD:c===""?fD:hD),i)}function mD(e,t){return e.length===t.length&&e.slice(0,-1).every((i,l)=>i===t[l])?e[e.length-1]-t[t.length-1]:0}function bD(e,t,a=!1){let{routesMeta:i}=e,l={},c="/",d=[];for(let h=0;h{if(v==="*"){let O=h[S]||"";d=c.slice(0,c.length-O.length).replace(/(.)\/+$/,"$1")}const C=h[S];return x&&!C?b[v]=void 0:b[v]=(C||"").replace(/%2F/g,"/"),b},{}),pathname:c,pathnameBase:d,pattern:e}}function vD(e,t=!1,a=!0){Dr(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 i=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,p)=>(i.push({paramName:h,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),i]}function xD(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Dr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ro(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,i=e.charAt(a);return i&&i!=="/"?null:e.slice(a)||"/"}var Kk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yD=e=>Kk.test(e);function SD(e,t="/"){let{pathname:a,search:i="",hash:l=""}=typeof e=="string"?pc(e):e,c;if(a)if(yD(a))c=a;else{if(a.includes("//")){let d=a;a=a.replace(/\/\/+/g,"/"),Dr(!1,`Pathnames cannot have embedded double slashes - normalizing ${d} -> ${a}`)}a.startsWith("/")?c=G1(a.substring(1),"/"):c=G1(a,t)}else c=t;return{pathname:c,search:wD(i),hash:kD(l)}}function G1(e,t){let a=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?a.length>1&&a.pop():l!=="."&&a.push(l)}),a.length>1?a.join("/"):"/"}function mm(e,t,a,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function CD(e){return e.filter((t,a)=>a===0||t.route.path&&t.route.path.length>0)}function Zk(e){let t=CD(e);return t.map((a,i)=>i===t.length-1?a.pathname:a.pathnameBase)}function Qk(e,t,a,i=!1){let l;typeof e=="string"?l=pc(e):(l={...e},sn(!l.pathname||!l.pathname.includes("?"),mm("?","pathname","search",l)),sn(!l.pathname||!l.pathname.includes("#"),mm("#","pathname","hash",l)),sn(!l.search||!l.search.includes("#"),mm("#","search","hash",l)));let c=e===""||l.pathname==="",d=c?"/":l.pathname,h;if(d==null)h=a;else{let x=t.length-1;if(!i&&d.startsWith("..")){let S=d.split("/");for(;S[0]==="..";)S.shift(),x-=1;l.pathname=S.join("/")}h=x>=0?t[x]:"/"}let p=SD(l,h),b=d&&d!=="/"&&d.endsWith("/"),v=(c||d===".")&&a.endsWith("/");return!p.pathname.endsWith("/")&&(b||v)&&(p.pathname+="/"),p}var Eo=e=>e.join("/").replace(/\/\/+/g,"/"),ED=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),wD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,kD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,RD=class{constructor(e,t,a,i=!1){this.status=e,this.statusText=t||"",this.internal=i,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function OD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function jD(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Jk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function e2(e,t){let a=e;if(typeof a!="string"||!Kk.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let i=a,l=!1;if(Jk)try{let c=new URL(window.location.href),d=a.startsWith("//")?new URL(c.protocol+a):new URL(a),h=Ro(d.pathname,t);d.origin===c.origin&&h!=null?a=h+d.search+d.hash:l=!0}catch{Dr(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:l,to:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var t2=["POST","PUT","PATCH","DELETE"];new Set(t2);var TD=["GET",...t2];new Set(TD);var mc=m.createContext(null);mc.displayName="DataRouter";var Oh=m.createContext(null);Oh.displayName="DataRouterState";var zD=m.createContext(!1),n2=m.createContext({isTransitioning:!1});n2.displayName="ViewTransition";var _D=m.createContext(new Map);_D.displayName="Fetchers";var AD=m.createContext(null);AD.displayName="Await";var Ur=m.createContext(null);Ur.displayName="Navigation";var Wu=m.createContext(null);Wu.displayName="Location";var To=m.createContext({outlet:null,matches:[],isDataRoute:!1});To.displayName="Route";var fb=m.createContext(null);fb.displayName="RouteError";var a2="REACT_ROUTER_ERROR",ID="REDIRECT",ND="ROUTE_ERROR_RESPONSE";function VD(e){if(e.startsWith(`${a2}:${ID}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function LD(e){if(e.startsWith(`${a2}:${ND}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new RD(t.status,t.statusText,t.data)}catch{}}function MD(e,{relative:t}={}){sn(Gu(),"useHref() may be used only in the context of a component.");let{basename:a,navigator:i}=m.useContext(Ur),{hash:l,pathname:c,search:d}=Yu(e,{relative:t}),h=c;return a!=="/"&&(h=c==="/"?a:Eo([a,c])),i.createHref({pathname:h,search:d,hash:l})}function Gu(){return m.useContext(Wu)!=null}function ml(){return sn(Gu(),"useLocation() may be used only in the context of a component."),m.useContext(Wu).location}var r2="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function i2(e){m.useContext(Ur).static||m.useLayoutEffect(e)}function qu(){let{isDataRoute:e}=m.useContext(To);return e?KD():DD()}function DD(){sn(Gu(),"useNavigate() may be used only in the context of a component.");let e=m.useContext(mc),{basename:t,navigator:a}=m.useContext(Ur),{matches:i}=m.useContext(To),{pathname:l}=ml(),c=JSON.stringify(Zk(i)),d=m.useRef(!1);return i2(()=>{d.current=!0}),m.useCallback((p,b={})=>{if(Dr(d.current,r2),!d.current)return;if(typeof p=="number"){a.go(p);return}let v=Qk(p,JSON.parse(c),l,b.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:Eo([t,v.pathname])),(b.replace?a.replace:a.push)(v,b.state,b)},[t,a,c,l,e])}m.createContext(null);function Yu(e,{relative:t}={}){let{matches:a}=m.useContext(To),{pathname:i}=ml(),l=JSON.stringify(Zk(a));return m.useMemo(()=>Qk(e,JSON.parse(l),i,t==="path"),[e,l,i,t])}function PD(e,t){return o2(e,t)}function o2(e,t,a,i,l){sn(Gu(),"useRoutes() may be used only in the context of a component.");let{navigator:c}=m.useContext(Ur),{matches:d}=m.useContext(To),h=d[d.length-1],p=h?h.params:{},b=h?h.pathname:"/",v=h?h.pathnameBase:"/",x=h&&h.route;{let _=x&&x.path||"";s2(b,!x||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${b}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. + +Please change the parent to .`)}let S=ml(),C;if(t){let _=typeof t=="string"?pc(t):t;sn(v==="/"||_.pathname?.startsWith(v),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${_.pathname}" was given in the \`location\` prop.`),C=_}else C=S;let O=C.pathname||"/",w=O;if(v!=="/"){let _=v.replace(/^\//,"").split("/");w="/"+O.replace(/^\//,"").split("/").slice(_.length).join("/")}let T=qk(e,{pathname:w});Dr(x||T!=null,`No routes matched location "${C.pathname}${C.search}${C.hash}" `),Dr(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${C.pathname}${C.search}${C.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let A=FD(T&&T.map(_=>Object.assign({},_,{params:Object.assign({},p,_.params),pathname:Eo([v,c.encodeLocation?c.encodeLocation(_.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?v:Eo([v,c.encodeLocation?c.encodeLocation(_.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathnameBase])})),d,a,i,l);return t&&A?m.createElement(Wu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...C},navigationType:"POP"}},A):A}function UD(){let e=XD(),t=OD(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:i},c={padding:"2px 4px",backgroundColor:i},d=null;return console.error("Error handled by React Router default ErrorBoundary:",e),d=m.createElement(m.Fragment,null,m.createElement("p",null,"💿 Hey developer 👋"),m.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",m.createElement("code",{style:c},"ErrorBoundary")," or"," ",m.createElement("code",{style:c},"errorElement")," prop on your route.")),m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),a?m.createElement("pre",{style:l},a):null,d)}var $D=m.createElement(UD,null),l2=class extends m.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const a=LD(e.digest);a&&(e=a)}let t=e!==void 0?m.createElement(To.Provider,{value:this.props.routeContext},m.createElement(fb.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?m.createElement(HD,{error:e},t):t}};l2.contextType=zD;var bm=new WeakMap;function HD({children:e,error:t}){let{basename:a}=m.useContext(Ur);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let i=VD(t.digest);if(i){let l=bm.get(t);if(l)throw l;let c=e2(i.location,a);if(Jk&&!bm.get(t))if(c.isExternal||i.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:i.replace}));throw bm.set(t,d),d}return m.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return e}function BD({routeContext:e,match:t,children:a}){let i=m.useContext(mc);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),m.createElement(To.Provider,{value:e},a)}function FD(e,t=[],a=null,i=null,l=null){if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let c=e,d=a?.errors;if(d!=null){let v=c.findIndex(x=>x.route.id&&d?.[x.route.id]!==void 0);sn(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),c=c.slice(0,Math.min(c.length,v+1))}let h=!1,p=-1;if(a)for(let v=0;v=0?c=c.slice(0,p+1):c=[c[0]];break}}}let b=a&&i?(v,x)=>{i(v,{location:a.location,params:a.matches?.[0]?.params??{},unstable_pattern:jD(a.matches),errorInfo:x})}:void 0;return c.reduceRight((v,x,S)=>{let C,O=!1,w=null,T=null;a&&(C=d&&x.route.id?d[x.route.id]:void 0,w=x.route.errorElement||$D,h&&(p<0&&S===0?(s2("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),O=!0,T=null):p===S&&(O=!0,T=x.route.hydrateFallbackElement||null)));let A=t.concat(c.slice(0,S+1)),_=()=>{let I;return C?I=w:O?I=T:x.route.Component?I=m.createElement(x.route.Component,null):x.route.element?I=x.route.element:I=v,m.createElement(BD,{match:x,routeContext:{outlet:v,matches:A,isDataRoute:a!=null},children:I})};return a&&(x.route.ErrorBoundary||x.route.errorElement||S===0)?m.createElement(l2,{location:a.location,revalidation:a.revalidation,component:w,error:C,children:_(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:b}):_()},null)}function hb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function WD(e){let t=m.useContext(mc);return sn(t,hb(e)),t}function GD(e){let t=m.useContext(Oh);return sn(t,hb(e)),t}function qD(e){let t=m.useContext(To);return sn(t,hb(e)),t}function gb(e){let t=qD(e),a=t.matches[t.matches.length-1];return sn(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function YD(){return gb("useRouteId")}function XD(){let e=m.useContext(fb),t=GD("useRouteError"),a=gb("useRouteError");return e!==void 0?e:t.errors?.[a]}function KD(){let{router:e}=WD("useNavigate"),t=gb("useNavigate"),a=m.useRef(!1);return i2(()=>{a.current=!0}),m.useCallback(async(l,c={})=>{Dr(a.current,r2),a.current&&(typeof l=="number"?await e.navigate(l):await e.navigate(l,{fromRouteId:t,...c}))},[e,t])}var q1={};function s2(e,t,a){!t&&!q1[e]&&(q1[e]=!0,Dr(!1,a))}m.memo(ZD);function ZD({routes:e,future:t,state:a,onError:i}){return o2(e,void 0,a,i,t)}function Nr(e){sn(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function QD({basename:e="/",children:t=null,location:a,navigationType:i="POP",navigator:l,static:c=!1,unstable_useTransitions:d}){sn(!Gu(),"You cannot render a inside another . You should never have more than one in your app.");let h=e.replace(/^\/*/,"/"),p=m.useMemo(()=>({basename:h,navigator:l,static:c,unstable_useTransitions:d,future:{}}),[h,l,c,d]);typeof a=="string"&&(a=pc(a));let{pathname:b="/",search:v="",hash:x="",state:S=null,key:C="default"}=a,O=m.useMemo(()=>{let w=Ro(b,h);return w==null?null:{location:{pathname:w,search:v,hash:x,state:S,key:C},navigationType:i}},[h,b,v,x,S,C,i]);return Dr(O!=null,` is not able to match the URL "${b}${v}${x}" because it does not start with the basename, so the won't render anything.`),O==null?null:m.createElement(Ur.Provider,{value:p},m.createElement(Wu.Provider,{children:t,value:O}))}function JD({children:e,location:t}){return PD(i0(e),t)}function i0(e,t=[]){let a=[];return m.Children.forEach(e,(i,l)=>{if(!m.isValidElement(i))return;let c=[...t,l];if(i.type===m.Fragment){a.push.apply(a,i0(i.props.children,c));return}sn(i.type===Nr,`[${typeof i.type=="string"?i.type:i.type.name}] is not a component. All component children of must be a or `),sn(!i.props.index||!i.props.children,"An index route cannot have child routes.");let d={id:i.props.id||c.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(d.children=i0(i.props.children,c)),a.push(d)}),a}var Hf="get",Bf="application/x-www-form-urlencoded";function jh(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function eP(e){return jh(e)&&e.tagName.toLowerCase()==="button"}function tP(e){return jh(e)&&e.tagName.toLowerCase()==="form"}function nP(e){return jh(e)&&e.tagName.toLowerCase()==="input"}function aP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function rP(e,t){return e.button===0&&(!t||t==="_self")&&!aP(e)}function o0(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,a)=>{let i=e[a];return t.concat(Array.isArray(i)?i.map(l=>[a,l]):[[a,i]])},[]))}function iP(e,t){let a=o0(e);return t&&t.forEach((i,l)=>{a.has(l)||t.getAll(l).forEach(c=>{a.append(l,c)})}),a}var Sf=null;function oP(){if(Sf===null)try{new FormData(document.createElement("form"),0),Sf=!1}catch{Sf=!0}return Sf}var lP=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function vm(e){return e!=null&&!lP.has(e)?(Dr(!1,`"${e}" is not a valid \`encType\` for \`\`/\`\` and will default to "${Bf}"`),null):e}function sP(e,t){let a,i,l,c,d;if(tP(e)){let h=e.getAttribute("action");i=h?Ro(h,t):null,a=e.getAttribute("method")||Hf,l=vm(e.getAttribute("enctype"))||Bf,c=new FormData(e)}else if(eP(e)||nP(e)&&(e.type==="submit"||e.type==="image")){let h=e.form;if(h==null)throw new Error('Cannot submit a