diff --git a/backend/app/api/routes/archives.py b/backend/app/api/routes/archives.py index 0e063fcea..49470c688 100644 --- a/backend/app/api/routes/archives.py +++ b/backend/app/api/routes/archives.py @@ -1964,15 +1964,189 @@ async def upload_archives_bulk( } +@router.get("/{archive_id}/plates") +async def get_archive_plates( + archive_id: int, + db: AsyncSession = Depends(get_db), +): + """Get available plates from a multi-plate 3MF archive. + + Returns a list of plates with their index, name, thumbnail availability, + and filament requirements. For single-plate exports, returns a single plate. + """ + import xml.etree.ElementTree as ET + + service = ArchiveService(db) + archive = await service.get_archive(archive_id) + if not archive: + raise HTTPException(404, "Archive not found") + + file_path = settings.base_dir / archive.file_path + if not file_path.exists(): + raise HTTPException(404, "Archive file not found") + + plates = [] + + try: + with zipfile.ZipFile(file_path, "r") as zf: + namelist = zf.namelist() + + # Find all plate gcode files to determine available plates + gcode_files = [n for n in namelist if n.startswith("Metadata/plate_") and n.endswith(".gcode")] + + if not gcode_files: + # No sliced plates found + return {"archive_id": archive_id, "filename": archive.filename, "plates": []} + + # Extract plate indices from gcode filenames + plate_indices = [] + for gf in gcode_files: + # "Metadata/plate_5.gcode" -> 5 + try: + plate_str = gf[15:-6] # Remove "Metadata/plate_" and ".gcode" + plate_indices.append(int(plate_str)) + except ValueError: + pass + + plate_indices.sort() + + # Parse slice_info.config for plate metadata + plate_metadata = {} # plate_index -> {filaments, prediction, weight, name} + if "Metadata/slice_info.config" in namelist: + content = zf.read("Metadata/slice_info.config").decode() + root = ET.fromstring(content) + + for plate_elem in root.findall(".//plate"): + plate_info = {"filaments": [], "prediction": None, "weight": None, "name": None} + + # Get plate index from metadata + plate_index = None + for meta in plate_elem.findall("metadata"): + key = meta.get("key") + value = meta.get("value") + if key == "index" and value: + try: + plate_index = int(value) + except ValueError: + pass + elif key == "prediction" and value: + try: + plate_info["prediction"] = int(value) + except ValueError: + pass + elif key == "weight" and value: + try: + plate_info["weight"] = float(value) + except ValueError: + pass + + # Get filaments used in this plate + for filament_elem in plate_elem.findall("filament"): + filament_id = filament_elem.get("id") + filament_type = filament_elem.get("type", "") + filament_color = filament_elem.get("color", "") + used_g = filament_elem.get("used_g", "0") + used_m = filament_elem.get("used_m", "0") + + try: + used_grams = float(used_g) + except (ValueError, TypeError): + used_grams = 0 + + if used_grams > 0 and filament_id: + plate_info["filaments"].append( + { + "slot_id": int(filament_id), + "type": filament_type, + "color": filament_color, + "used_grams": round(used_grams, 1), + "used_meters": float(used_m) if used_m else 0, + } + ) + + # Sort filaments by slot ID + plate_info["filaments"].sort(key=lambda x: x["slot_id"]) + + # Get first object name as plate name hint + first_obj = plate_elem.find("object") + if first_obj is not None: + plate_info["name"] = first_obj.get("name") + + if plate_index is not None: + plate_metadata[plate_index] = plate_info + + # Build plate list + for idx in plate_indices: + meta = plate_metadata.get(idx, {}) + has_thumbnail = f"Metadata/plate_{idx}.png" in namelist + + plates.append( + { + "index": idx, + "name": meta.get("name"), + "has_thumbnail": has_thumbnail, + "thumbnail_url": f"/api/v1/archives/{archive_id}/plate-thumbnail/{idx}" + if has_thumbnail + else None, + "print_time_seconds": meta.get("prediction"), + "filament_used_grams": meta.get("weight"), + "filaments": meta.get("filaments", []), + } + ) + + except Exception as e: + logger.warning(f"Failed to parse plates from archive {archive_id}: {e}") + + return { + "archive_id": archive_id, + "filename": archive.filename, + "plates": plates, + "is_multi_plate": len(plates) > 1, + } + + +@router.get("/{archive_id}/plate-thumbnail/{plate_index}") +async def get_plate_thumbnail( + archive_id: int, + plate_index: int, + db: AsyncSession = Depends(get_db), +): + """Get the thumbnail image for a specific plate.""" + service = ArchiveService(db) + archive = await service.get_archive(archive_id) + if not archive: + raise HTTPException(404, "Archive not found") + + file_path = settings.base_dir / archive.file_path + if not file_path.exists(): + raise HTTPException(404, "Archive file not found") + + try: + with zipfile.ZipFile(file_path, "r") as zf: + thumb_path = f"Metadata/plate_{plate_index}.png" + if thumb_path in zf.namelist(): + data = zf.read(thumb_path) + return Response(content=data, media_type="image/png") + except Exception: + pass + + raise HTTPException(404, f"Thumbnail for plate {plate_index} not found") + + @router.get("/{archive_id}/filament-requirements") async def get_filament_requirements( archive_id: int, + plate_id: int | None = None, db: AsyncSession = Depends(get_db), ): """Get filament requirements from the archived 3MF file. Returns the filaments used in this print with their slot IDs, types, colors, and usage amounts. This can be compared with current AMS state before reprinting. + + Args: + archive_id: The archive ID + plate_id: Optional plate index to filter filaments for (for multi-plate files) """ import xml.etree.ElementTree as ET @@ -1994,31 +2168,70 @@ async def get_filament_requirements( content = zf.read("Metadata/slice_info.config").decode() root = ET.fromstring(content) - # Extract filament elements - # Format: - for filament_elem in root.findall(".//filament"): - filament_id = filament_elem.get("id") - filament_type = filament_elem.get("type", "") - filament_color = filament_elem.get("color", "") - used_g = filament_elem.get("used_g", "0") - used_m = filament_elem.get("used_m", "0") + # If plate_id is specified, find filaments for that specific plate + if plate_id is not None: + # Find the plate element with matching index + for plate_elem in root.findall(".//plate"): + plate_index = None + for meta in plate_elem.findall("metadata"): + if meta.get("key") == "index": + try: + plate_index = int(meta.get("value", "0")) + except ValueError: + pass + break - # Only include filaments that are actually used - try: - used_grams = float(used_g) - except (ValueError, TypeError): - used_grams = 0 + if plate_index == plate_id: + # Extract filaments from this plate element + for filament_elem in plate_elem.findall("filament"): + filament_id = filament_elem.get("id") + filament_type = filament_elem.get("type", "") + filament_color = filament_elem.get("color", "") + used_g = filament_elem.get("used_g", "0") + used_m = filament_elem.get("used_m", "0") - if used_grams > 0 and filament_id: - filaments.append( - { - "slot_id": int(filament_id), - "type": filament_type, - "color": filament_color, - "used_grams": round(used_grams, 1), - "used_meters": float(used_m) if used_m else 0, - } - ) + try: + used_grams = float(used_g) + except (ValueError, TypeError): + used_grams = 0 + + if used_grams > 0 and filament_id: + filaments.append( + { + "slot_id": int(filament_id), + "type": filament_type, + "color": filament_color, + "used_grams": round(used_grams, 1), + "used_meters": float(used_m) if used_m else 0, + } + ) + break + else: + # No plate_id specified - extract all filaments with used_g > 0 + # This is the legacy behavior for single-plate files + for filament_elem in root.findall(".//filament"): + filament_id = filament_elem.get("id") + filament_type = filament_elem.get("type", "") + filament_color = filament_elem.get("color", "") + used_g = filament_elem.get("used_g", "0") + used_m = filament_elem.get("used_m", "0") + + # Only include filaments that are actually used + try: + used_grams = float(used_g) + except (ValueError, TypeError): + used_grams = 0 + + if used_grams > 0 and filament_id: + filaments.append( + { + "slot_id": int(filament_id), + "type": filament_type, + "color": filament_color, + "used_grams": round(used_grams, 1), + "used_meters": float(used_m) if used_m else 0, + } + ) # Sort by slot ID filaments.sort(key=lambda x: x["slot_id"]) @@ -2029,6 +2242,7 @@ async def get_filament_requirements( return { "archive_id": archive_id, "filename": archive.filename, + "plate_id": plate_id, "filaments": filaments, } @@ -2129,18 +2343,22 @@ async def reprint_archive( # Register this as an expected print so we don't create a duplicate archive register_expected_print(printer_id, remote_filename, archive_id) - # Detect plate ID from 3MF file - plate_id = 1 - try: - with zipfile.ZipFile(file_path, "r") as zf: - for name in zf.namelist(): - if name.startswith("Metadata/plate_") and name.endswith(".gcode"): - # Extract plate number from "Metadata/plate_X.gcode" - plate_str = name[15:-6] # Remove "Metadata/plate_" and ".gcode" - plate_id = int(plate_str) - break - except Exception: - pass # Default to plate 1 if detection fails + # Use plate_id from request if provided, otherwise auto-detect from 3MF file + if body.plate_id is not None: + plate_id = body.plate_id + else: + # Auto-detect plate ID from 3MF file (legacy behavior for single-plate files) + plate_id = 1 + try: + with zipfile.ZipFile(file_path, "r") as zf: + for name in zf.namelist(): + if name.startswith("Metadata/plate_") and name.endswith(".gcode"): + # Extract plate number from "Metadata/plate_X.gcode" + plate_str = name[15:-6] # Remove "Metadata/plate_" and ".gcode" + plate_id = int(plate_str) + break + except Exception: + pass # Default to plate 1 if detection fails logger.info( f"Reprint archive {archive_id}: plate_id={plate_id}, " diff --git a/backend/app/schemas/archive.py b/backend/app/schemas/archive.py index 0bbec7f6e..463852f0b 100644 --- a/backend/app/schemas/archive.py +++ b/backend/app/schemas/archive.py @@ -170,6 +170,10 @@ class ProjectPageUpdate(BaseModel): class ReprintRequest(BaseModel): """Request body for reprinting an archive.""" + # Plate selection for multi-plate 3MF files + # If not specified, auto-detects from file (legacy behavior for single-plate files) + plate_id: int | None = None + # AMS slot mapping: list of tray IDs for each filament slot in the 3MF # Global tray ID = (ams_id * 4) + slot_id, external = 254 ams_mapping: list[int] | None = None diff --git a/backend/tests/integration/test_archives_api.py b/backend/tests/integration/test_archives_api.py index 3713115b8..476292f4e 100644 --- a/backend/tests/integration/test_archives_api.py +++ b/backend/tests/integration/test_archives_api.py @@ -380,3 +380,35 @@ class TestArchiveF3DEndpoints: assert with_f3d["f3d_path"] == "archives/test/design.f3d" assert without_f3d is not None assert without_f3d["f3d_path"] is None + + # ======================================================================== + # Multi-Plate 3MF endpoints (Issue #93) + # ======================================================================== + + @pytest.mark.asyncio + @pytest.mark.integration + async def test_get_archive_plates_not_found(self, async_client: AsyncClient): + """Verify 404 when fetching plates for non-existent archive.""" + response = await async_client.get("/api/v1/archives/999999/plates") + assert response.status_code == 404 + + @pytest.mark.asyncio + @pytest.mark.integration + async def test_get_plate_thumbnail_not_found(self, async_client: AsyncClient): + """Verify 404 when fetching plate thumbnail for non-existent archive.""" + response = await async_client.get("/api/v1/archives/999999/plate-thumbnail/1") + assert response.status_code == 404 + + @pytest.mark.asyncio + @pytest.mark.integration + async def test_filament_requirements_not_found(self, async_client: AsyncClient): + """Verify filament-requirements returns 404 for non-existent archive.""" + response = await async_client.get("/api/v1/archives/999999/filament-requirements") + assert response.status_code == 404 + + @pytest.mark.asyncio + @pytest.mark.integration + async def test_filament_requirements_with_plate_id_not_found(self, async_client: AsyncClient): + """Verify filament-requirements with plate_id returns 404 for non-existent archive.""" + response = await async_client.get("/api/v1/archives/999999/filament-requirements?plate_id=1") + assert response.status_code == 404 diff --git a/backend/tests/unit/services/test_archive_service.py b/backend/tests/unit/services/test_archive_service.py index fb900d489..1402ac03e 100644 --- a/backend/tests/unit/services/test_archive_service.py +++ b/backend/tests/unit/services/test_archive_service.py @@ -426,3 +426,188 @@ class TestThreeMFPlateIndexExtraction: # Verify thumbnail would use correct plate thumbnail_path = f"Metadata/plate_{plate_index}.png" assert thumbnail_path == "Metadata/plate_28.png" + + +class TestMultiPlate3MFParsing: + """Tests for parsing multi-plate 3MF files (Issue #93).""" + + def test_parse_multiple_plates_from_slice_info(self): + """Test parsing multiple plates from slice_info.config.""" + from xml.etree import ElementTree as ET + + # Multi-plate 3MF with 3 plates + slice_info_xml = """ + + + + + + + + + + + + + + + + + + + + + + + + + """ + root = ET.fromstring(slice_info_xml) + plates = root.findall(".//plate") + + assert len(plates) == 3 + + # Parse each plate + plate_data = [] + for plate_elem in plates: + plate_info = {"index": None, "filaments": []} + + for meta in plate_elem.findall("metadata"): + if meta.get("key") == "index": + plate_info["index"] = int(meta.get("value")) + + for filament_elem in plate_elem.findall("filament"): + used_g = float(filament_elem.get("used_g", "0")) + if used_g > 0: + plate_info["filaments"].append( + { + "slot_id": int(filament_elem.get("id")), + "type": filament_elem.get("type"), + "color": filament_elem.get("color"), + "used_grams": used_g, + } + ) + + plate_data.append(plate_info) + + # Verify plate 1 + assert plate_data[0]["index"] == 1 + assert len(plate_data[0]["filaments"]) == 1 + assert plate_data[0]["filaments"][0]["slot_id"] == 1 + assert plate_data[0]["filaments"][0]["type"] == "PLA" + + # Verify plate 2 + assert plate_data[1]["index"] == 2 + assert len(plate_data[1]["filaments"]) == 1 + assert plate_data[1]["filaments"][0]["slot_id"] == 2 + assert plate_data[1]["filaments"][0]["type"] == "PETG" + + # Verify plate 3 (has 2 filaments) + assert plate_data[2]["index"] == 3 + assert len(plate_data[2]["filaments"]) == 2 + filament_types = {f["type"] for f in plate_data[2]["filaments"]} + assert filament_types == {"PLA", "TPU"} + + def test_filter_filaments_by_plate_id(self): + """Test filtering filaments for a specific plate.""" + from xml.etree import ElementTree as ET + + slice_info_xml = """ + + + + + + + + + + + """ + root = ET.fromstring(slice_info_xml) + + # Filter for plate 2 only + target_plate_id = 2 + filaments = [] + + for plate_elem in root.findall(".//plate"): + plate_index = None + for meta in plate_elem.findall("metadata"): + if meta.get("key") == "index": + plate_index = int(meta.get("value", "0")) + break + + if plate_index == target_plate_id: + for filament_elem in plate_elem.findall("filament"): + used_g = float(filament_elem.get("used_g", "0")) + if used_g > 0: + filaments.append( + { + "slot_id": int(filament_elem.get("id")), + "type": filament_elem.get("type"), + } + ) + break + + # Should only have plate 2's filament + assert len(filaments) == 1 + assert filaments[0]["slot_id"] == 2 + assert filaments[0]["type"] == "PETG" + + def test_detect_multi_plate_from_gcode_files(self): + """Test detecting multiple plates from gcode file presence.""" + # Simulate namelist from a multi-plate 3MF + namelist = [ + "Metadata/plate_1.gcode", + "Metadata/plate_2.gcode", + "Metadata/plate_3.gcode", + "Metadata/plate_1.png", + "Metadata/plate_2.png", + "Metadata/plate_3.png", + "Metadata/slice_info.config", + "3D/3dmodel.model", + ] + + # Extract plate indices from gcode files + gcode_files = [n for n in namelist if n.startswith("Metadata/plate_") and n.endswith(".gcode")] + plate_indices = [] + for gf in gcode_files: + plate_str = gf[15:-6] # Remove "Metadata/plate_" and ".gcode" + plate_indices.append(int(plate_str)) + + plate_indices.sort() + + assert len(plate_indices) == 3 + assert plate_indices == [1, 2, 3] + + # Verify it's a multi-plate file + is_multi_plate = len(plate_indices) > 1 + assert is_multi_plate is True + + def test_single_plate_export_not_multi_plate(self): + """Test that single-plate exports are not detected as multi-plate.""" + # Simulate namelist from a single-plate export (plate 5 only) + namelist = [ + "Metadata/plate_5.gcode", + "Metadata/plate_1.png", + "Metadata/plate_2.png", + "Metadata/plate_3.png", + "Metadata/plate_4.png", + "Metadata/plate_5.png", # All thumbnails present + "Metadata/slice_info.config", + "3D/3dmodel.model", + ] + + # Extract plate indices from gcode files (not thumbnails!) + gcode_files = [n for n in namelist if n.startswith("Metadata/plate_") and n.endswith(".gcode")] + plate_indices = [] + for gf in gcode_files: + plate_str = gf[15:-6] + plate_indices.append(int(plate_str)) + + # Only one gcode file = single plate export + assert len(plate_indices) == 1 + assert plate_indices[0] == 5 + + is_multi_plate = len(plate_indices) > 1 + assert is_multi_plate is False diff --git a/frontend/src/api/client.ts b/frontend/src/api/client.ts index 7f1d180ef..65af485f5 100644 --- a/frontend/src/api/client.ts +++ b/frontend/src/api/client.ts @@ -1780,10 +1780,32 @@ export const api = { `${API_BASE}/archives/${archiveId}/project-image/${encodeURIComponent(imagePath)}`, getArchiveForSlicer: (id: number, filename: string) => `${API_BASE}/archives/${id}/file/${encodeURIComponent(filename.endsWith('.3mf') ? filename : filename + '.3mf')}`, - getArchiveFilamentRequirements: (archiveId: number) => + getArchivePlates: (archiveId: number) => request<{ archive_id: number; filename: string; + plates: Array<{ + index: number; + name: string | null; + has_thumbnail: boolean; + thumbnail_url: string | null; + print_time_seconds: number | null; + filament_used_grams: number | null; + filaments: Array<{ + slot_id: number; + type: string; + color: string; + used_grams: number; + used_meters: number; + }>; + }>; + is_multi_plate: boolean; + }>(`/archives/${archiveId}/plates`), + getArchiveFilamentRequirements: (archiveId: number, plateId?: number) => + request<{ + archive_id: number; + filename: string; + plate_id: number | null; filaments: Array<{ slot_id: number; type: string; @@ -1791,11 +1813,12 @@ export const api = { used_grams: number; used_meters: number; }>; - }>(`/archives/${archiveId}/filament-requirements`), + }>(`/archives/${archiveId}/filament-requirements${plateId !== undefined ? `?plate_id=${plateId}` : ''}`), reprintArchive: ( archiveId: number, printerId: number, options?: { + plate_id?: number; ams_mapping?: number[]; timelapse?: boolean; bed_levelling?: boolean; diff --git a/frontend/src/components/ReprintModal.tsx b/frontend/src/components/ReprintModal.tsx index 27218688a..540ecc94a 100644 --- a/frontend/src/components/ReprintModal.tsx +++ b/frontend/src/components/ReprintModal.tsx @@ -1,6 +1,6 @@ import { useState, useEffect, useMemo } from 'react'; import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query'; -import { X, Printer, Loader2, AlertTriangle, Check, Circle, RefreshCw, ChevronDown, ChevronUp, Settings } from 'lucide-react'; +import { X, Printer, Loader2, AlertTriangle, Check, Circle, RefreshCw, ChevronDown, ChevronUp, Settings, Layers } from 'lucide-react'; import { api } from '../api/client'; import { Card, CardContent } from './Card'; import { Button } from './Button'; @@ -30,19 +30,29 @@ const DEFAULT_PRINT_OPTIONS: PrintOptions = { timelapse: false, }; +// Format seconds to human readable time +const formatTime = (seconds: number | null | undefined): string => { + if (!seconds) return ''; + const hours = Math.floor(seconds / 3600); + const minutes = Math.floor((seconds % 3600) / 60); + if (hours > 0) return `${hours}h ${minutes}m`; + return `${minutes}m`; +}; + export function ReprintModal({ archiveId, archiveName, onClose, onSuccess }: ReprintModalProps) { const queryClient = useQueryClient(); const [selectedPrinter, setSelectedPrinter] = useState(null); + const [selectedPlate, setSelectedPlate] = useState(null); const [isRefreshing, setIsRefreshing] = useState(false); const [showOptions, setShowOptions] = useState(false); const [printOptions, setPrintOptions] = useState(DEFAULT_PRINT_OPTIONS); // Manual slot overrides: slot_id (1-indexed) -> globalTrayId const [manualMappings, setManualMappings] = useState>({}); - // Clear manual mappings when printer changes + // Clear manual mappings when printer or plate changes useEffect(() => { setManualMappings({}); - }, [selectedPrinter]); + }, [selectedPrinter, selectedPlate]); // Close on Escape key useEffect(() => { @@ -58,10 +68,24 @@ export function ReprintModal({ archiveId, archiveName, onClose, onSuccess }: Rep queryFn: api.getPrinters, }); - // Fetch filament requirements from the archived 3MF + // Fetch available plates from the archived 3MF + const { data: platesData } = useQuery({ + queryKey: ['archive-plates', archiveId], + queryFn: () => api.getArchivePlates(archiveId), + }); + + // Auto-select the first plate for single-plate files, or require selection for multi-plate + useEffect(() => { + if (platesData?.plates?.length === 1) { + setSelectedPlate(platesData.plates[0].index); + } + }, [platesData]); + + // Fetch filament requirements from the archived 3MF (filtered by plate if selected) const { data: filamentReqs } = useQuery({ - queryKey: ['archive-filaments', archiveId], - queryFn: () => api.getArchiveFilamentRequirements(archiveId), + queryKey: ['archive-filaments', archiveId, selectedPlate], + queryFn: () => api.getArchiveFilamentRequirements(archiveId, selectedPlate ?? undefined), + enabled: selectedPlate !== null || !platesData?.is_multi_plate, }); // Fetch printer status when a printer is selected @@ -75,6 +99,7 @@ export function ReprintModal({ archiveId, archiveName, onClose, onSuccess }: Rep mutationFn: () => { if (!selectedPrinter) throw new Error('No printer selected'); return api.reprintArchive(archiveId, selectedPrinter, { + plate_id: selectedPlate ?? undefined, ams_mapping: amsMapping, ...printOptions, }); @@ -86,6 +111,8 @@ export function ReprintModal({ archiveId, archiveName, onClose, onSuccess }: Rep }); const activePrinters = printers?.filter((p) => p.is_active) || []; + const isMultiPlate = platesData?.is_multi_plate ?? false; + const plates = platesData?.plates ?? []; // Helper to normalize color format (API returns "RRGGBBAA", 3MF uses "#RRGGBB") const normalizeColor = (color: string | null | undefined): string => { @@ -372,8 +399,61 @@ export function ReprintModal({ archiveId, archiveName, onClose, onSuccess }: Rep )} + {/* Plate selection - show when multi-plate file detected */} + {isMultiPlate && plates.length > 1 && ( + + + + Select Plate to Print + {!selectedPlate && ( + + + Selection required + + )} + + + {plates.map((plate) => ( + setSelectedPlate(plate.index)} + className={`flex items-center gap-2 p-2 rounded-lg border transition-colors text-left ${ + selectedPlate === plate.index + ? 'border-bambu-green bg-bambu-green/10' + : 'border-bambu-dark-tertiary bg-bambu-dark hover:border-bambu-gray' + }`} + > + {plate.has_thumbnail && plate.thumbnail_url ? ( + + ) : ( + + + + )} + + + Plate {plate.index} + + + {plate.name || `${plate.filaments.length} filament${plate.filaments.length !== 1 ? 's' : ''}`} + {plate.print_time_seconds ? ` • ${formatTime(plate.print_time_seconds)}` : ''} + + + {selectedPlate === plate.index && ( + + )} + + ))} + + + )} + {/* Filament comparison - show when printer selected and has filament requirements */} - {selectedPrinter && filamentComparison.length > 0 && ( + {selectedPrinter && (isMultiPlate ? selectedPlate !== null : true) && filamentComparison.length > 0 && ( Filament Check @@ -561,7 +641,7 @@ export function ReprintModal({ archiveId, archiveName, onClose, onSuccess }: Rep reprintMutation.mutate()} - disabled={!selectedPrinter || reprintMutation.isPending} + disabled={!selectedPrinter || (isMultiPlate && !selectedPlate) || reprintMutation.isPending} className="flex-1" > {reprintMutation.isPending ? ( diff --git a/static/assets/index-CVMDsKi7.js b/static/assets/index-BNfnoADT.js similarity index 81% rename from static/assets/index-CVMDsKi7.js rename to static/assets/index-BNfnoADT.js index 505ef659d..ddda77a44 100644 --- a/static/assets/index-CVMDsKi7.js +++ b/static/assets/index-BNfnoADT.js @@ -1,20 +1,20 @@ -function Sie(t,e){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Pv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var qN={exports:{}},Mx={};var LF;function Mie(){if(LF)return Mx;LF=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,a){var o=null;if(a!==void 0&&(o=""+a),i.key!==void 0&&(o=""+i.key),"key"in i){a={};for(var l in i)l!=="key"&&(a[l]=i[l])}else a=i;return i=a.ref,{$$typeof:t,type:r,key:o,ref:i!==void 0?i:null,props:a}}return Mx.Fragment=e,Mx.jsx=n,Mx.jsxs=n,Mx}var IF;function Eie(){return IF||(IF=1,qN.exports=Mie()),qN.exports}var s=Eie(),KN={exports:{}},sn={};var FF;function Nie(){if(FF)return sn;FF=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),g=Symbol.iterator;function p(F){return F===null||typeof F!="object"?null:(F=g&&F[g]||F["@@iterator"],typeof F=="function"?F:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,x={};function y(F,V,ee){this.props=F,this.context=V,this.refs=x,this.updater=ee||b}y.prototype.isReactComponent={},y.prototype.setState=function(F,V){if(typeof F!="object"&&typeof F!="function"&&F!=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,F,V,"setState")},y.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function E(){}E.prototype=y.prototype;function w(F,V,ee){this.props=F,this.context=V,this.refs=x,this.updater=ee||b}var A=w.prototype=new E;A.constructor=w,v(A,y.prototype),A.isPureReactComponent=!0;var N=Array.isArray;function C(){}var T={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function k(F,V,ee){var te=ee.ref;return{$$typeof:t,type:F,key:V,ref:te!==void 0?te:null,props:ee}}function D(F,V){return k(F.type,V,F.props)}function B(F){return typeof F=="object"&&F!==null&&F.$$typeof===t}function L(F){var V={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(ee){return V[ee]})}var K=/\/+/g;function R(F,V){return typeof F=="object"&&F!==null&&F.key!=null?L(""+F.key):V.toString(36)}function G(F){switch(F.status){case"fulfilled":return F.value;case"rejected":throw F.reason;default:switch(typeof F.status=="string"?F.then(C,C):(F.status="pending",F.then(function(V){F.status==="pending"&&(F.status="fulfilled",F.value=V)},function(V){F.status==="pending"&&(F.status="rejected",F.reason=V)})),F.status){case"fulfilled":return F.value;case"rejected":throw F.reason}}throw F}function Z(F,V,ee,te,ie){var ce=typeof F;(ce==="undefined"||ce==="boolean")&&(F=null);var pe=!1;if(F===null)pe=!0;else switch(ce){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(F.$$typeof){case t:case e:pe=!0;break;case d:return pe=F._init,Z(pe(F._payload),V,ee,te,ie)}}if(pe)return ie=ie(F),pe=te===""?"."+R(F,0):te,N(ie)?(ee="",pe!=null&&(ee=pe.replace(K,"$&/")+"/"),Z(ie,V,ee,"",function(Ee){return Ee})):ie!=null&&(B(ie)&&(ie=D(ie,ee+(ie.key==null||F&&F.key===ie.key?"":(""+ie.key).replace(K,"$&/")+"/")+pe)),V.push(ie)),1;pe=0;var ue=te===""?".":te+":";if(N(F))for(var me=0;me>>1,W=Z[X];if(0>>1;Xi(ee,Y))tei(ie,ee)?(Z[X]=ie,Z[te]=Y,X=te):(Z[X]=ee,Z[V]=Y,X=V);else if(tei(ie,Y))Z[X]=ie,Z[te]=Y,X=te;else break e}}return q}function i(Z,q){var Y=Z.sortIndex-q.sortIndex;return Y!==0?Y:Z.id-q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,f=null,g=3,p=!1,b=!1,v=!1,x=!1,y=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function A(Z){for(var q=n(u);q!==null;){if(q.callback===null)r(u);else if(q.startTime<=Z)r(u),q.sortIndex=q.expirationTime,e(c,q);else break;q=n(u)}}function N(Z){if(v=!1,A(Z),!b)if(n(c)!==null)b=!0,C||(C=!0,L());else{var q=n(u);q!==null&&G(N,q.startTime-Z)}}var C=!1,T=-1,O=5,k=-1;function D(){return x?!0:!(t.unstable_now()-kZ&&D());){var X=f.callback;if(typeof X=="function"){f.callback=null,g=f.priorityLevel;var W=X(f.expirationTime<=Z);if(Z=t.unstable_now(),typeof W=="function"){f.callback=W,A(Z),q=!0;break t}f===n(c)&&r(c),A(Z)}else r(c);f=n(c)}if(f!==null)q=!0;else{var F=n(u);F!==null&&G(N,F.startTime-Z),q=!1}}break e}finally{f=null,g=Y,p=!1}q=void 0}}finally{q?L():C=!1}}}var L;if(typeof w=="function")L=function(){w(B)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,R=K.port2;K.port1.onmessage=B,L=function(){R.postMessage(null)}}else L=function(){y(B,0)};function G(Z,q){T=y(function(){Z(t.unstable_now())},q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(Z){Z.callback=null},t.unstable_forceFrameRate=function(Z){0>Z||125X?(Z.sortIndex=Y,e(u,Z),n(c)===null&&Z===n(u)&&(v?(E(T),T=-1):v=!0,G(N,Y-X))):(Z.sortIndex=W,e(c,Z),b||p||(b=!0,C||(C=!0,L()))),Z},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(Z){var q=g;return function(){var Y=g;g=q;try{return Z.apply(this,arguments)}finally{g=Y}}}})(ZN)),ZN}var BF;function Cie(){return BF||(BF=1,YN.exports=Tie()),YN.exports}var QN={exports:{}},ga={};var HF;function kie(){if(HF)return ga;HF=1;var t=ug();function e(c){var u="https://react.dev/errors/"+c;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),QN.exports=kie(),QN.exports}var VF;function jie(){if(VF)return Ex;VF=1;var t=Cie(),e=ug(),n=uG();function r(h){var m="https://react.dev/errors/"+h;if(1W||(h.current=X[W],X[W]=null,W--)}function ee(h,m){W++,X[W]=h.current,h.current=m}var te=F(null),ie=F(null),ce=F(null),pe=F(null);function ue(h,m){switch(ee(ce,m),ee(ie,h),ee(te,null),m.nodeType){case 9:case 11:h=(h=m.documentElement)&&(h=h.namespaceURI)?aF(h):0;break;default:if(h=m.tagName,m=m.namespaceURI)m=aF(m),h=sF(m,h);else switch(h){case"svg":h=1;break;case"math":h=2;break;default:h=0}}V(te),ee(te,h)}function me(){V(te),V(ie),V(ce)}function Ee(h){h.memoizedState!==null&&ee(pe,h);var m=te.current,_=sF(m,h.type);m!==_&&(ee(ie,h),ee(te,_))}function be(h){ie.current===h&&(V(te),V(ie)),pe.current===h&&(V(pe),vx._currentValue=Y)}var le,He;function $(h){if(le===void 0)try{throw Error()}catch(_){var m=_.stack.trim().match(/\n( *(at )?)/);le=m&&m[1]||"",He=-1<_.stack.indexOf(` +function Sie(t,e){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Pv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var qN={exports:{}},Mx={};var LF;function Mie(){if(LF)return Mx;LF=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,a){var o=null;if(a!==void 0&&(o=""+a),i.key!==void 0&&(o=""+i.key),"key"in i){a={};for(var l in i)l!=="key"&&(a[l]=i[l])}else a=i;return i=a.ref,{$$typeof:t,type:r,key:o,ref:i!==void 0?i:null,props:a}}return Mx.Fragment=e,Mx.jsx=n,Mx.jsxs=n,Mx}var IF;function Eie(){return IF||(IF=1,qN.exports=Mie()),qN.exports}var s=Eie(),KN={exports:{}},sn={};var FF;function Nie(){if(FF)return sn;FF=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),g=Symbol.iterator;function p(F){return F===null||typeof F!="object"?null:(F=g&&F[g]||F["@@iterator"],typeof F=="function"?F:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,x={};function y(F,G,ee){this.props=F,this.context=G,this.refs=x,this.updater=ee||b}y.prototype.isReactComponent={},y.prototype.setState=function(F,G){if(typeof F!="object"&&typeof F!="function"&&F!=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,F,G,"setState")},y.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function E(){}E.prototype=y.prototype;function w(F,G,ee){this.props=F,this.context=G,this.refs=x,this.updater=ee||b}var A=w.prototype=new E;A.constructor=w,v(A,y.prototype),A.isPureReactComponent=!0;var N=Array.isArray;function C(){}var T={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function k(F,G,ee){var te=ee.ref;return{$$typeof:t,type:F,key:G,ref:te!==void 0?te:null,props:ee}}function R(F,G){return k(F.type,G,F.props)}function B(F){return typeof F=="object"&&F!==null&&F.$$typeof===t}function I(F){var G={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(ee){return G[ee]})}var X=/\/+/g;function D(F,G){return typeof F=="object"&&F!==null&&F.key!=null?I(""+F.key):G.toString(36)}function Y(F){switch(F.status){case"fulfilled":return F.value;case"rejected":throw F.reason;default:switch(typeof F.status=="string"?F.then(C,C):(F.status="pending",F.then(function(G){F.status==="pending"&&(F.status="fulfilled",F.value=G)},function(G){F.status==="pending"&&(F.status="rejected",F.reason=G)})),F.status){case"fulfilled":return F.value;case"rejected":throw F.reason}}throw F}function Q(F,G,ee,te,ie){var ce=typeof F;(ce==="undefined"||ce==="boolean")&&(F=null);var pe=!1;if(F===null)pe=!0;else switch(ce){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(F.$$typeof){case t:case e:pe=!0;break;case d:return pe=F._init,Q(pe(F._payload),G,ee,te,ie)}}if(pe)return ie=ie(F),pe=te===""?"."+D(F,0):te,N(ie)?(ee="",pe!=null&&(ee=pe.replace(X,"$&/")+"/"),Q(ie,G,ee,"",function(Se){return Se})):ie!=null&&(B(ie)&&(ie=R(ie,ee+(ie.key==null||F&&F.key===ie.key?"":(""+ie.key).replace(X,"$&/")+"/")+pe)),G.push(ie)),1;pe=0;var ue=te===""?".":te+":";if(N(F))for(var me=0;me>>1,W=Q[q];if(0>>1;qi(ee,K))tei(ie,ee)?(Q[q]=ie,Q[te]=K,q=te):(Q[q]=ee,Q[G]=K,q=G);else if(tei(ie,K))Q[q]=ie,Q[te]=K,q=te;else break e}}return V}function i(Q,V){var K=Q.sortIndex-V.sortIndex;return K!==0?K:Q.id-V.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,f=null,g=3,p=!1,b=!1,v=!1,x=!1,y=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function A(Q){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=Q)r(u),V.sortIndex=V.expirationTime,e(c,V);else break;V=n(u)}}function N(Q){if(v=!1,A(Q),!b)if(n(c)!==null)b=!0,C||(C=!0,I());else{var V=n(u);V!==null&&Y(N,V.startTime-Q)}}var C=!1,T=-1,O=5,k=-1;function R(){return x?!0:!(t.unstable_now()-kQ&&R());){var q=f.callback;if(typeof q=="function"){f.callback=null,g=f.priorityLevel;var W=q(f.expirationTime<=Q);if(Q=t.unstable_now(),typeof W=="function"){f.callback=W,A(Q),V=!0;break t}f===n(c)&&r(c),A(Q)}else r(c);f=n(c)}if(f!==null)V=!0;else{var F=n(u);F!==null&&Y(N,F.startTime-Q),V=!1}}break e}finally{f=null,g=K,p=!1}V=void 0}}finally{V?I():C=!1}}}var I;if(typeof w=="function")I=function(){w(B)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,D=X.port2;X.port1.onmessage=B,I=function(){D.postMessage(null)}}else I=function(){y(B,0)};function Y(Q,V){T=y(function(){Q(t.unstable_now())},V)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(Q){Q.callback=null},t.unstable_forceFrameRate=function(Q){0>Q||125q?(Q.sortIndex=K,e(u,Q),n(c)===null&&Q===n(u)&&(v?(E(T),T=-1):v=!0,Y(N,K-q))):(Q.sortIndex=W,e(c,Q),b||p||(b=!0,C||(C=!0,I()))),Q},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(Q){var V=g;return function(){var K=g;g=V;try{return Q.apply(this,arguments)}finally{g=K}}}})(ZN)),ZN}var BF;function Cie(){return BF||(BF=1,YN.exports=Tie()),YN.exports}var QN={exports:{}},ga={};var HF;function kie(){if(HF)return ga;HF=1;var t=ug();function e(c){var u="https://react.dev/errors/"+c;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),QN.exports=kie(),QN.exports}var VF;function jie(){if(VF)return Ex;VF=1;var t=Cie(),e=ug(),n=uG();function r(h){var m="https://react.dev/errors/"+h;if(1W||(h.current=q[W],q[W]=null,W--)}function ee(h,m){W++,q[W]=h.current,h.current=m}var te=F(null),ie=F(null),ce=F(null),pe=F(null);function ue(h,m){switch(ee(ce,m),ee(ie,h),ee(te,null),m.nodeType){case 9:case 11:h=(h=m.documentElement)&&(h=h.namespaceURI)?aF(h):0;break;default:if(h=m.tagName,m=m.namespaceURI)m=aF(m),h=sF(m,h);else switch(h){case"svg":h=1;break;case"math":h=2;break;default:h=0}}G(te),ee(te,h)}function me(){G(te),G(ie),G(ce)}function Se(h){h.memoizedState!==null&&ee(pe,h);var m=te.current,_=sF(m,h.type);m!==_&&(ee(ie,h),ee(te,_))}function be(h){ie.current===h&&(G(te),G(ie)),pe.current===h&&(G(pe),vx._currentValue=K)}var oe,He;function $(h){if(oe===void 0)try{throw Error()}catch(_){var m=_.stack.trim().match(/\n( *(at )?)/);oe=m&&m[1]||"",He=-1<_.stack.indexOf(` at`)?" ()":-1<_.stack.indexOf("@")?"@unknown:0:0":""}return` -`+le+h+He}var z=!1;function se(h,m){if(!h||z)return"";z=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var M={DetermineComponentFrameRoot:function(){try{if(m){var pt=function(){throw Error()};if(Object.defineProperty(pt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pt,[])}catch(ot){var it=ot}Reflect.construct(h,[],pt)}else{try{pt.call()}catch(ot){it=ot}h.call(pt.prototype)}}else{try{throw Error()}catch(ot){it=ot}(pt=h())&&typeof pt.catch=="function"&&pt.catch(function(){})}}catch(ot){if(ot&&it&&typeof ot.stack=="string")return[ot.stack,it.stack]}return[null,null]}};M.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var j=Object.getOwnPropertyDescriptor(M.DetermineComponentFrameRoot,"name");j&&j.configurable&&Object.defineProperty(M.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var I=M.DetermineComponentFrameRoot(),J=I[0],de=I[1];if(J&&de){var ke=J.split(` +`+oe+h+He}var z=!1;function se(h,m){if(!h||z)return"";z=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var M={DetermineComponentFrameRoot:function(){try{if(m){var pt=function(){throw Error()};if(Object.defineProperty(pt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pt,[])}catch(ot){var it=ot}Reflect.construct(h,[],pt)}else{try{pt.call()}catch(ot){it=ot}h.call(pt.prototype)}}else{try{throw Error()}catch(ot){it=ot}(pt=h())&&typeof pt.catch=="function"&&pt.catch(function(){})}}catch(ot){if(ot&&it&&typeof ot.stack=="string")return[ot.stack,it.stack]}return[null,null]}};M.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var j=Object.getOwnPropertyDescriptor(M.DetermineComponentFrameRoot,"name");j&&j.configurable&&Object.defineProperty(M.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var L=M.DetermineComponentFrameRoot(),J=L[0],de=L[1];if(J&&de){var ke=J.split(` `),tt=de.split(` `);for(j=M=0;Mj||ke[M]!==tt[j]){var ct=` -`+ke[M].replace(" at new "," at ");return h.displayName&&ct.includes("")&&(ct=ct.replace("",h.displayName)),ct}while(1<=M&&0<=j);break}}}finally{z=!1,Error.prepareStackTrace=_}return(_=h?h.displayName||h.name:"")?$(_):""}function U(h,m){switch(h.tag){case 26:case 27:case 5:return $(h.type);case 16:return $("Lazy");case 13:return h.child!==m&&m!==null?$("Suspense Fallback"):$("Suspense");case 19:return $("SuspenseList");case 0:case 15:return se(h.type,!1);case 11:return se(h.type.render,!1);case 1:return se(h.type,!0);case 31:return $("Activity");default:return""}}function Q(h){try{var m="",_=null;do m+=U(h,_),_=h,h=h.return;while(h);return m}catch(M){return` +`+ke[M].replace(" at new "," at ");return h.displayName&&ct.includes("")&&(ct=ct.replace("",h.displayName)),ct}while(1<=M&&0<=j);break}}}finally{z=!1,Error.prepareStackTrace=_}return(_=h?h.displayName||h.name:"")?$(_):""}function U(h,m){switch(h.tag){case 26:case 27:case 5:return $(h.type);case 16:return $("Lazy");case 13:return h.child!==m&&m!==null?$("Suspense Fallback"):$("Suspense");case 19:return $("SuspenseList");case 0:case 15:return se(h.type,!1);case 11:return se(h.type.render,!1);case 1:return se(h.type,!0);case 31:return $("Activity");default:return""}}function Z(h){try{var m="",_=null;do m+=U(h,_),_=h,h=h.return;while(h);return m}catch(M){return` Error generating stack: `+M.message+` -`+M.stack}}var oe=Object.prototype.hasOwnProperty,je=t.unstable_scheduleCallback,Se=t.unstable_cancelCallback,fe=t.unstable_shouldYield,H=t.unstable_requestPaint,P=t.unstable_now,re=t.unstable_getCurrentPriorityLevel,_e=t.unstable_ImmediatePriority,Me=t.unstable_UserBlockingPriority,we=t.unstable_NormalPriority,rt=t.unstable_LowPriority,We=t.unstable_IdlePriority,at=t.log,ut=t.unstable_setDisableYieldValue,Le=null,he=null;function Ke(h){if(typeof at=="function"&&ut(h),he&&typeof he.setStrictMode=="function")try{he.setStrictMode(Le,h)}catch{}}var Xe=Math.clz32?Math.clz32:ne,Qe=Math.log,lt=Math.LN2;function ne(h){return h>>>=0,h===0?32:31-(Qe(h)/lt|0)|0}var ze=256,ge=262144,Be=4194304;function Pe(h){var m=h&42;if(m!==0)return m;switch(h&-h){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 h&261888;case 262144:case 524288:case 1048576:case 2097152:return h&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return h&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return h}}function Ne(h,m,_){var M=h.pendingLanes;if(M===0)return 0;var j=0,I=h.suspendedLanes,J=h.pingedLanes;h=h.warmLanes;var de=M&134217727;return de!==0?(M=de&~I,M!==0?j=Pe(M):(J&=de,J!==0?j=Pe(J):_||(_=de&~h,_!==0&&(j=Pe(_))))):(de=M&~I,de!==0?j=Pe(de):J!==0?j=Pe(J):_||(_=M&~h,_!==0&&(j=Pe(_)))),j===0?0:m!==0&&m!==j&&(m&I)===0&&(I=j&-j,_=m&-m,I>=_||I===32&&(_&4194048)!==0)?m:j}function Ye(h,m){return(h.pendingLanes&~(h.suspendedLanes&~h.pingedLanes)&m)===0}function dt(h,m){switch(h){case 1:case 2:case 4:case 8:case 64:return m+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 m+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 Nt(){var h=Be;return Be<<=1,(Be&62914560)===0&&(Be=4194304),h}function Dt(h){for(var m=[],_=0;31>_;_++)m.push(h);return m}function Zt(h,m){h.pendingLanes|=m,m!==268435456&&(h.suspendedLanes=0,h.pingedLanes=0,h.warmLanes=0)}function jt(h,m,_,M,j,I){var J=h.pendingLanes;h.pendingLanes=_,h.suspendedLanes=0,h.pingedLanes=0,h.warmLanes=0,h.expiredLanes&=_,h.entangledLanes&=_,h.errorRecoveryDisabledLanes&=_,h.shellSuspendCounter=0;var de=h.entanglements,ke=h.expirationTimes,tt=h.hiddenUpdates;for(_=J&~_;0<_;){var ct=31-Xe(_),pt=1<"u")return null;try{return h.activeElement||h.body}catch{return h.body}}var Yr=/[\n"\\]/g;function Vn(h){return h.replace(Yr,function(m){return"\\"+m.charCodeAt(0).toString(16)+" "})}function Mo(h,m,_,M,j,I,J,de){h.name="",J!=null&&typeof J!="function"&&typeof J!="symbol"&&typeof J!="boolean"?h.type=J:h.removeAttribute("type"),m!=null?J==="number"?(m===0&&h.value===""||h.value!=m)&&(h.value=""+wn(m)):h.value!==""+wn(m)&&(h.value=""+wn(m)):J!=="submit"&&J!=="reset"||h.removeAttribute("value"),m!=null?Li(h,J,wn(m)):_!=null?Li(h,J,wn(_)):M!=null&&h.removeAttribute("value"),j==null&&I!=null&&(h.defaultChecked=!!I),j!=null&&(h.checked=j&&typeof j!="function"&&typeof j!="symbol"),de!=null&&typeof de!="function"&&typeof de!="symbol"&&typeof de!="boolean"?h.name=""+wn(de):h.removeAttribute("name")}function Wn(h,m,_,M,j,I,J,de){if(I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(h.type=I),m!=null||_!=null){if(!(I!=="submit"&&I!=="reset"||m!=null)){an(h);return}_=_!=null?""+wn(_):"",m=m!=null?""+wn(m):_,de||m===h.value||(h.value=m),h.defaultValue=m}M=M??j,M=typeof M!="function"&&typeof M!="symbol"&&!!M,h.checked=de?h.checked:!!M,h.defaultChecked=!!M,J!=null&&typeof J!="function"&&typeof J!="symbol"&&typeof J!="boolean"&&(h.name=J),an(h)}function Li(h,m,_){m==="number"&&zr(h.ownerDocument)===h||h.defaultValue===""+_||(h.defaultValue=""+_)}function yi(h,m,_,M){if(h=h.options,m){m={};for(var j=0;j<_.length;j++)m["$"+_[j]]=!0;for(_=0;_"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),q2=!1;if($l)try{var Fg={};Object.defineProperty(Fg,"passive",{get:function(){q2=!0}}),window.addEventListener("test",Fg,Fg),window.removeEventListener("test",Fg,Fg)}catch{q2=!1}var lu=null,K2=null,My=null;function sL(){if(My)return My;var h,m=K2,_=m.length,M,j="value"in lu?lu.value:lu.textContent,I=j.length;for(h=0;h<_&&m[h]===j[h];h++);var J=_-h;for(M=1;M<=J&&m[_-M]===j[I-M];M++);return My=j.slice(h,1=Bg),hL=" ",fL=!1;function mL(h,m){switch(h){case"keyup":return Gne.indexOf(m.keyCode)!==-1;case"keydown":return m.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pL(h){return h=h.detail,typeof h=="object"&&"data"in h?h.data:null}var Uf=!1;function qne(h,m){switch(h){case"compositionend":return pL(m);case"keypress":return m.which!==32?null:(fL=!0,hL);case"textInput":return h=m.data,h===hL&&fL?null:h;default:return null}}function Kne(h,m){if(Uf)return h==="compositionend"||!J2&&mL(h,m)?(h=sL(),My=K2=lu=null,Uf=!1,h):null;switch(h){case"paste":return null;case"keypress":if(!(m.ctrlKey||m.altKey||m.metaKey)||m.ctrlKey&&m.altKey){if(m.char&&1=m)return{node:_,offset:m-h};h=M}e:{for(;_;){if(_.nextSibling){_=_.nextSibling;break e}_=_.parentNode}_=void 0}_=SL(_)}}function EL(h,m){return h&&m?h===m?!0:h&&h.nodeType===3?!1:m&&m.nodeType===3?EL(h,m.parentNode):"contains"in h?h.contains(m):h.compareDocumentPosition?!!(h.compareDocumentPosition(m)&16):!1:!1}function NL(h){h=h!=null&&h.ownerDocument!=null&&h.ownerDocument.defaultView!=null?h.ownerDocument.defaultView:window;for(var m=zr(h.document);m instanceof h.HTMLIFrameElement;){try{var _=typeof m.contentWindow.location.href=="string"}catch{_=!1}if(_)h=m.contentWindow;else break;m=zr(h.document)}return m}function nE(h){var m=h&&h.nodeName&&h.nodeName.toLowerCase();return m&&(m==="input"&&(h.type==="text"||h.type==="search"||h.type==="tel"||h.type==="url"||h.type==="password")||m==="textarea"||h.contentEditable==="true")}var nre=$l&&"documentMode"in document&&11>=document.documentMode,zf=null,rE=null,Gg=null,iE=!1;function AL(h,m,_){var M=_.window===_?_.document:_.nodeType===9?_:_.ownerDocument;iE||zf==null||zf!==zr(M)||(M=zf,"selectionStart"in M&&nE(M)?M={start:M.selectionStart,end:M.selectionEnd}:(M=(M.ownerDocument&&M.ownerDocument.defaultView||window).getSelection(),M={anchorNode:M.anchorNode,anchorOffset:M.anchorOffset,focusNode:M.focusNode,focusOffset:M.focusOffset}),Gg&&Vg(Gg,M)||(Gg=M,M=xv(rE,"onSelect"),0>=J,j-=J,nl=1<<32-Xe(m)+j|_<dn?(Pn=Ut,Ut=null):Pn=Ut.sibling;var Fn=it(Ge,Ut,et[dn],ft);if(Fn===null){Ut===null&&(Ut=Pn);break}h&&Ut&&Fn.alternate===null&&m(Ge,Ut),Fe=I(Fn,Fe,dn),In===null?Gt=Fn:In.sibling=Fn,In=Fn,Ut=Pn}if(dn===et.length)return _(Ge,Ut),Dn&&Gl(Ge,dn),Gt;if(Ut===null){for(;dndn?(Pn=Ut,Ut=null):Pn=Ut.sibling;var ku=it(Ge,Ut,Fn.value,ft);if(ku===null){Ut===null&&(Ut=Pn);break}h&&Ut&&ku.alternate===null&&m(Ge,Ut),Fe=I(ku,Fe,dn),In===null?Gt=ku:In.sibling=ku,In=ku,Ut=Pn}if(Fn.done)return _(Ge,Ut),Dn&&Gl(Ge,dn),Gt;if(Ut===null){for(;!Fn.done;dn++,Fn=et.next())Fn=pt(Ge,Fn.value,ft),Fn!==null&&(Fe=I(Fn,Fe,dn),In===null?Gt=Fn:In.sibling=Fn,In=Fn);return Dn&&Gl(Ge,dn),Gt}for(Ut=M(Ut);!Fn.done;dn++,Fn=et.next())Fn=ot(Ut,Ge,dn,Fn.value,ft),Fn!==null&&(h&&Fn.alternate!==null&&Ut.delete(Fn.key===null?dn:Fn.key),Fe=I(Fn,Fe,dn),In===null?Gt=Fn:In.sibling=Fn,In=Fn);return h&&Ut.forEach(function(wie){return m(Ge,wie)}),Dn&&Gl(Ge,dn),Gt}function ir(Ge,Fe,et,ft){if(typeof et=="object"&&et!==null&&et.type===v&&et.key===null&&(et=et.props.children),typeof et=="object"&&et!==null){switch(et.$$typeof){case p:e:{for(var Gt=et.key;Fe!==null;){if(Fe.key===Gt){if(Gt=et.type,Gt===v){if(Fe.tag===7){_(Ge,Fe.sibling),ft=j(Fe,et.props.children),ft.return=Ge,Ge=ft;break e}}else if(Fe.elementType===Gt||typeof Gt=="object"&&Gt!==null&&Gt.$$typeof===O&&rh(Gt)===Fe.type){_(Ge,Fe.sibling),ft=j(Fe,et.props),Zg(ft,et),ft.return=Ge,Ge=ft;break e}_(Ge,Fe);break}else m(Ge,Fe);Fe=Fe.sibling}et.type===v?(ft=Qd(et.props.children,Ge.mode,ft,et.key),ft.return=Ge,Ge=ft):(ft=Dy(et.type,et.key,et.props,null,Ge.mode,ft),Zg(ft,et),ft.return=Ge,Ge=ft)}return J(Ge);case b:e:{for(Gt=et.key;Fe!==null;){if(Fe.key===Gt)if(Fe.tag===4&&Fe.stateNode.containerInfo===et.containerInfo&&Fe.stateNode.implementation===et.implementation){_(Ge,Fe.sibling),ft=j(Fe,et.children||[]),ft.return=Ge,Ge=ft;break e}else{_(Ge,Fe);break}else m(Ge,Fe);Fe=Fe.sibling}ft=dE(et,Ge.mode,ft),ft.return=Ge,Ge=ft}return J(Ge);case O:return et=rh(et),ir(Ge,Fe,et,ft)}if(G(et))return It(Ge,Fe,et,ft);if(L(et)){if(Gt=L(et),typeof Gt!="function")throw Error(r(150));return et=Gt.call(et),Qt(Ge,Fe,et,ft)}if(typeof et.then=="function")return ir(Ge,Fe,By(et),ft);if(et.$$typeof===w)return ir(Ge,Fe,Iy(Ge,et),ft);Hy(Ge,et)}return typeof et=="string"&&et!==""||typeof et=="number"||typeof et=="bigint"?(et=""+et,Fe!==null&&Fe.tag===6?(_(Ge,Fe.sibling),ft=j(Fe,et),ft.return=Ge,Ge=ft):(_(Ge,Fe),ft=uE(et,Ge.mode,ft),ft.return=Ge,Ge=ft),J(Ge)):_(Ge,Fe)}return function(Ge,Fe,et,ft){try{Yg=0;var Gt=ir(Ge,Fe,et,ft);return Zf=null,Gt}catch(Ut){if(Ut===Yf||Ut===Uy)throw Ut;var In=xs(29,Ut,null,Ge.mode);return In.lanes=ft,In.return=Ge,In}finally{}}}var ah=YL(!0),ZL=YL(!1),fu=!1;function SE(h){h.updateQueue={baseState:h.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ME(h,m){h=h.updateQueue,m.updateQueue===h&&(m.updateQueue={baseState:h.baseState,firstBaseUpdate:h.firstBaseUpdate,lastBaseUpdate:h.lastBaseUpdate,shared:h.shared,callbacks:null})}function mu(h){return{lane:h,tag:0,payload:null,callback:null,next:null}}function pu(h,m,_){var M=h.updateQueue;if(M===null)return null;if(M=M.shared,(Bn&2)!==0){var j=M.pending;return j===null?m.next=m:(m.next=j.next,j.next=m),M.pending=m,m=Ry(h),DL(h,null,_),m}return Py(h,M,m,_),Ry(h)}function Qg(h,m,_){if(m=m.updateQueue,m!==null&&(m=m.shared,(_&4194048)!==0)){var M=m.lanes;M&=h.pendingLanes,_|=M,m.lanes=_,qt(h,_)}}function EE(h,m){var _=h.updateQueue,M=h.alternate;if(M!==null&&(M=M.updateQueue,_===M)){var j=null,I=null;if(_=_.firstBaseUpdate,_!==null){do{var J={lane:_.lane,tag:_.tag,payload:_.payload,callback:null,next:null};I===null?j=I=J:I=I.next=J,_=_.next}while(_!==null);I===null?j=I=m:I=I.next=m}else j=I=m;_={baseState:M.baseState,firstBaseUpdate:j,lastBaseUpdate:I,shared:M.shared,callbacks:M.callbacks},h.updateQueue=_;return}h=_.lastBaseUpdate,h===null?_.firstBaseUpdate=m:h.next=m,_.lastBaseUpdate=m}var NE=!1;function Jg(){if(NE){var h=Xf;if(h!==null)throw h}}function ex(h,m,_,M){NE=!1;var j=h.updateQueue;fu=!1;var I=j.firstBaseUpdate,J=j.lastBaseUpdate,de=j.shared.pending;if(de!==null){j.shared.pending=null;var ke=de,tt=ke.next;ke.next=null,J===null?I=tt:J.next=tt,J=ke;var ct=h.alternate;ct!==null&&(ct=ct.updateQueue,de=ct.lastBaseUpdate,de!==J&&(de===null?ct.firstBaseUpdate=tt:de.next=tt,ct.lastBaseUpdate=ke))}if(I!==null){var pt=j.baseState;J=0,ct=tt=ke=null,de=I;do{var it=de.lane&-536870913,ot=it!==de.lane;if(ot?(jn&it)===it:(M&it)===it){it!==0&&it===Kf&&(NE=!0),ct!==null&&(ct=ct.next={lane:0,tag:de.tag,payload:de.payload,callback:null,next:null});e:{var It=h,Qt=de;it=m;var ir=_;switch(Qt.tag){case 1:if(It=Qt.payload,typeof It=="function"){pt=It.call(ir,pt,it);break e}pt=It;break e;case 3:It.flags=It.flags&-65537|128;case 0:if(It=Qt.payload,it=typeof It=="function"?It.call(ir,pt,it):It,it==null)break e;pt=f({},pt,it);break e;case 2:fu=!0}}it=de.callback,it!==null&&(h.flags|=64,ot&&(h.flags|=8192),ot=j.callbacks,ot===null?j.callbacks=[it]:ot.push(it))}else ot={lane:it,tag:de.tag,payload:de.payload,callback:de.callback,next:null},ct===null?(tt=ct=ot,ke=pt):ct=ct.next=ot,J|=it;if(de=de.next,de===null){if(de=j.shared.pending,de===null)break;ot=de,de=ot.next,ot.next=null,j.lastBaseUpdate=ot,j.shared.pending=null}}while(!0);ct===null&&(ke=pt),j.baseState=ke,j.firstBaseUpdate=tt,j.lastBaseUpdate=ct,I===null&&(j.shared.lanes=0),vu|=J,h.lanes=J,h.memoizedState=pt}}function QL(h,m){if(typeof h!="function")throw Error(r(191,h));h.call(m)}function JL(h,m){var _=h.callbacks;if(_!==null)for(h.callbacks=null,h=0;h<_.length;h++)QL(_[h],m)}var Qf=F(null),$y=F(0);function eI(h,m){h=nc,ee($y,h),ee(Qf,m),nc=h|m.baseLanes}function AE(){ee($y,nc),ee(Qf,Qf.current)}function TE(){nc=$y.current,V(Qf),V($y)}var bs=F(null),Ws=null;function gu(h){var m=h.alternate;ee(Zr,Zr.current&1),ee(bs,h),Ws===null&&(m===null||Qf.current!==null||m.memoizedState!==null)&&(Ws=h)}function CE(h){ee(Zr,Zr.current),ee(bs,h),Ws===null&&(Ws=h)}function tI(h){h.tag===22?(ee(Zr,Zr.current),ee(bs,h),Ws===null&&(Ws=h)):xu()}function xu(){ee(Zr,Zr.current),ee(bs,bs.current)}function ys(h){V(bs),Ws===h&&(Ws=null),V(Zr)}var Zr=F(0);function Vy(h){for(var m=h;m!==null;){if(m.tag===13){var _=m.memoizedState;if(_!==null&&(_=_.dehydrated,_===null||ON(_)||LN(_)))return m}else if(m.tag===19&&(m.memoizedProps.revealOrder==="forwards"||m.memoizedProps.revealOrder==="backwards"||m.memoizedProps.revealOrder==="unstable_legacy-backwards"||m.memoizedProps.revealOrder==="together")){if((m.flags&128)!==0)return m}else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===h)break;for(;m.sibling===null;){if(m.return===null||m.return===h)return null;m=m.return}m.sibling.return=m.return,m=m.sibling}return null}var Kl=0,un=null,nr=null,si=null,Gy=!1,Jf=!1,sh=!1,Wy=0,tx=0,em=null,hre=0;function Br(){throw Error(r(321))}function kE(h,m){if(m===null)return!1;for(var _=0;_I?I:8;var J=Z.T,de={};Z.T=de,GE(h,!1,m,_);try{var ke=j(),tt=Z.S;if(tt!==null&&tt(de,ke),ke!==null&&typeof ke=="object"&&typeof ke.then=="function"){var ct=dre(ke,M);rx(h,m,ct,ws(h))}else rx(h,m,M,ws(h))}catch(pt){rx(h,m,{then:function(){},status:"rejected",reason:pt},ws())}finally{q.p=I,J!==null&&de.types!==null&&(J.types=de.types),Z.T=J}}function xre(){}function $E(h,m,_,M){if(h.tag!==5)throw Error(r(476));var j=jI(h).queue;kI(h,j,m,Y,_===null?xre:function(){return PI(h),_(M)})}function jI(h){var m=h.memoizedState;if(m!==null)return m;m={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xl,lastRenderedState:Y},next:null};var _={};return m.next={memoizedState:_,baseState:_,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xl,lastRenderedState:_},next:null},h.memoizedState=m,h=h.alternate,h!==null&&(h.memoizedState=m),m}function PI(h){var m=jI(h);m.next===null&&(m=h.alternate.memoizedState),rx(h,m.next.queue,{},ws())}function VE(){return Ji(vx)}function RI(){return Qr().memoizedState}function DI(){return Qr().memoizedState}function bre(h){for(var m=h.return;m!==null;){switch(m.tag){case 24:case 3:var _=ws();h=mu(_);var M=pu(m,h,_);M!==null&&(Za(M,m,_),Qg(M,m,_)),m={cache:yE()},h.payload=m;return}m=m.return}}function yre(h,m,_){var M=ws();_={lane:M,revertLane:0,gesture:null,action:_,hasEagerState:!1,eagerState:null,next:null},Qy(h)?LI(m,_):(_=lE(h,m,_,M),_!==null&&(Za(_,h,M),II(_,m,M)))}function OI(h,m,_){var M=ws();rx(h,m,_,M)}function rx(h,m,_,M){var j={lane:M,revertLane:0,gesture:null,action:_,hasEagerState:!1,eagerState:null,next:null};if(Qy(h))LI(m,j);else{var I=h.alternate;if(h.lanes===0&&(I===null||I.lanes===0)&&(I=m.lastRenderedReducer,I!==null))try{var J=m.lastRenderedState,de=I(J,_);if(j.hasEagerState=!0,j.eagerState=de,gs(de,J))return Py(h,m,j,0),fr===null&&jy(),!1}catch{}finally{}if(_=lE(h,m,j,M),_!==null)return Za(_,h,M),II(_,m,M),!0}return!1}function GE(h,m,_,M){if(M={lane:2,revertLane:SN(),gesture:null,action:M,hasEagerState:!1,eagerState:null,next:null},Qy(h)){if(m)throw Error(r(479))}else m=lE(h,_,M,2),m!==null&&Za(m,h,2)}function Qy(h){var m=h.alternate;return h===un||m!==null&&m===un}function LI(h,m){Jf=Gy=!0;var _=h.pending;_===null?m.next=m:(m.next=_.next,_.next=m),h.pending=m}function II(h,m,_){if((_&4194048)!==0){var M=m.lanes;M&=h.pendingLanes,_|=M,m.lanes=_,qt(h,_)}}var ix={readContext:Ji,use:Ky,useCallback:Br,useContext:Br,useEffect:Br,useImperativeHandle:Br,useLayoutEffect:Br,useInsertionEffect:Br,useMemo:Br,useReducer:Br,useRef:Br,useState:Br,useDebugValue:Br,useDeferredValue:Br,useTransition:Br,useSyncExternalStore:Br,useId:Br,useHostTransitionStatus:Br,useFormState:Br,useActionState:Br,useOptimistic:Br,useMemoCache:Br,useCacheRefresh:Br};ix.useEffectEvent=Br;var FI={readContext:Ji,use:Ky,useCallback:function(h,m){return ja().memoizedState=[h,m===void 0?null:m],h},useContext:Ji,useEffect:_I,useImperativeHandle:function(h,m,_){_=_!=null?_.concat([h]):null,Yy(4194308,4,EI.bind(null,m,h),_)},useLayoutEffect:function(h,m){return Yy(4194308,4,h,m)},useInsertionEffect:function(h,m){Yy(4,2,h,m)},useMemo:function(h,m){var _=ja();m=m===void 0?null:m;var M=h();if(sh){Ke(!0);try{h()}finally{Ke(!1)}}return _.memoizedState=[M,m],M},useReducer:function(h,m,_){var M=ja();if(_!==void 0){var j=_(m);if(sh){Ke(!0);try{_(m)}finally{Ke(!1)}}}else j=m;return M.memoizedState=M.baseState=j,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:h,lastRenderedState:j},M.queue=h,h=h.dispatch=yre.bind(null,un,h),[M.memoizedState,h]},useRef:function(h){var m=ja();return h={current:h},m.memoizedState=h},useState:function(h){h=FE(h);var m=h.queue,_=OI.bind(null,un,m);return m.dispatch=_,[h.memoizedState,_]},useDebugValue:BE,useDeferredValue:function(h,m){var _=ja();return HE(_,h,m)},useTransition:function(){var h=FE(!1);return h=kI.bind(null,un,h.queue,!0,!1),ja().memoizedState=h,[!1,h]},useSyncExternalStore:function(h,m,_){var M=un,j=ja();if(Dn){if(_===void 0)throw Error(r(407));_=_()}else{if(_=m(),fr===null)throw Error(r(349));(jn&127)!==0||aI(M,m,_)}j.memoizedState=_;var I={value:_,getSnapshot:m};return j.queue=I,_I(oI.bind(null,M,I,h),[h]),M.flags|=2048,tm(9,{destroy:void 0},sI.bind(null,M,I,_,m),null),_},useId:function(){var h=ja(),m=fr.identifierPrefix;if(Dn){var _=rl,M=nl;_=(M&~(1<<32-Xe(M)-1)).toString(32)+_,m="_"+m+"R_"+_,_=Wy++,0<_&&(m+="H"+_.toString(32)),m+="_"}else _=hre++,m="_"+m+"r_"+_.toString(32)+"_";return h.memoizedState=m},useHostTransitionStatus:VE,useFormState:gI,useActionState:gI,useOptimistic:function(h){var m=ja();m.memoizedState=m.baseState=h;var _={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return m.queue=_,m=GE.bind(null,un,!0,_),_.dispatch=m,[h,m]},useMemoCache:OE,useCacheRefresh:function(){return ja().memoizedState=bre.bind(null,un)},useEffectEvent:function(h){var m=ja(),_={impl:h};return m.memoizedState=_,function(){if((Bn&2)!==0)throw Error(r(440));return _.impl.apply(void 0,arguments)}}},WE={readContext:Ji,use:Ky,useCallback:AI,useContext:Ji,useEffect:zE,useImperativeHandle:NI,useInsertionEffect:SI,useLayoutEffect:MI,useMemo:TI,useReducer:Xy,useRef:vI,useState:function(){return Xy(Xl)},useDebugValue:BE,useDeferredValue:function(h,m){var _=Qr();return CI(_,nr.memoizedState,h,m)},useTransition:function(){var h=Xy(Xl)[0],m=Qr().memoizedState;return[typeof h=="boolean"?h:nx(h),m]},useSyncExternalStore:iI,useId:RI,useHostTransitionStatus:VE,useFormState:xI,useActionState:xI,useOptimistic:function(h,m){var _=Qr();return uI(_,nr,h,m)},useMemoCache:OE,useCacheRefresh:DI};WE.useEffectEvent=wI;var UI={readContext:Ji,use:Ky,useCallback:AI,useContext:Ji,useEffect:zE,useImperativeHandle:NI,useInsertionEffect:SI,useLayoutEffect:MI,useMemo:TI,useReducer:IE,useRef:vI,useState:function(){return IE(Xl)},useDebugValue:BE,useDeferredValue:function(h,m){var _=Qr();return nr===null?HE(_,h,m):CI(_,nr.memoizedState,h,m)},useTransition:function(){var h=IE(Xl)[0],m=Qr().memoizedState;return[typeof h=="boolean"?h:nx(h),m]},useSyncExternalStore:iI,useId:RI,useHostTransitionStatus:VE,useFormState:yI,useActionState:yI,useOptimistic:function(h,m){var _=Qr();return nr!==null?uI(_,nr,h,m):(_.baseState=h,[h,_.queue.dispatch])},useMemoCache:OE,useCacheRefresh:DI};UI.useEffectEvent=wI;function qE(h,m,_,M){m=h.memoizedState,_=_(M,m),_=_==null?m:f({},m,_),h.memoizedState=_,h.lanes===0&&(h.updateQueue.baseState=_)}var KE={enqueueSetState:function(h,m,_){h=h._reactInternals;var M=ws(),j=mu(M);j.payload=m,_!=null&&(j.callback=_),m=pu(h,j,M),m!==null&&(Za(m,h,M),Qg(m,h,M))},enqueueReplaceState:function(h,m,_){h=h._reactInternals;var M=ws(),j=mu(M);j.tag=1,j.payload=m,_!=null&&(j.callback=_),m=pu(h,j,M),m!==null&&(Za(m,h,M),Qg(m,h,M))},enqueueForceUpdate:function(h,m){h=h._reactInternals;var _=ws(),M=mu(_);M.tag=2,m!=null&&(M.callback=m),m=pu(h,M,_),m!==null&&(Za(m,h,_),Qg(m,h,_))}};function zI(h,m,_,M,j,I,J){return h=h.stateNode,typeof h.shouldComponentUpdate=="function"?h.shouldComponentUpdate(M,I,J):m.prototype&&m.prototype.isPureReactComponent?!Vg(_,M)||!Vg(j,I):!0}function BI(h,m,_,M){h=m.state,typeof m.componentWillReceiveProps=="function"&&m.componentWillReceiveProps(_,M),typeof m.UNSAFE_componentWillReceiveProps=="function"&&m.UNSAFE_componentWillReceiveProps(_,M),m.state!==h&&KE.enqueueReplaceState(m,m.state,null)}function oh(h,m){var _=m;if("ref"in m){_={};for(var M in m)M!=="ref"&&(_[M]=m[M])}if(h=h.defaultProps){_===m&&(_=f({},_));for(var j in h)_[j]===void 0&&(_[j]=h[j])}return _}function HI(h){ky(h)}function $I(h){console.error(h)}function VI(h){ky(h)}function Jy(h,m){try{var _=h.onUncaughtError;_(m.value,{componentStack:m.stack})}catch(M){setTimeout(function(){throw M})}}function GI(h,m,_){try{var M=h.onCaughtError;M(_.value,{componentStack:_.stack,errorBoundary:m.tag===1?m.stateNode:null})}catch(j){setTimeout(function(){throw j})}}function XE(h,m,_){return _=mu(_),_.tag=3,_.payload={element:null},_.callback=function(){Jy(h,m)},_}function WI(h){return h=mu(h),h.tag=3,h}function qI(h,m,_,M){var j=_.type.getDerivedStateFromError;if(typeof j=="function"){var I=M.value;h.payload=function(){return j(I)},h.callback=function(){GI(m,_,M)}}var J=_.stateNode;J!==null&&typeof J.componentDidCatch=="function"&&(h.callback=function(){GI(m,_,M),typeof j!="function"&&(_u===null?_u=new Set([this]):_u.add(this));var de=M.stack;this.componentDidCatch(M.value,{componentStack:de!==null?de:""})})}function vre(h,m,_,M,j){if(_.flags|=32768,M!==null&&typeof M=="object"&&typeof M.then=="function"){if(m=_.alternate,m!==null&&qf(m,_,j,!0),_=bs.current,_!==null){switch(_.tag){case 31:case 13:return Ws===null?dv():_.alternate===null&&Hr===0&&(Hr=3),_.flags&=-257,_.flags|=65536,_.lanes=j,M===zy?_.flags|=16384:(m=_.updateQueue,m===null?_.updateQueue=new Set([M]):m.add(M),vN(h,M,j)),!1;case 22:return _.flags|=65536,M===zy?_.flags|=16384:(m=_.updateQueue,m===null?(m={transitions:null,markerInstances:null,retryQueue:new Set([M])},_.updateQueue=m):(_=m.retryQueue,_===null?m.retryQueue=new Set([M]):_.add(M)),vN(h,M,j)),!1}throw Error(r(435,_.tag))}return vN(h,M,j),dv(),!1}if(Dn)return m=bs.current,m!==null?((m.flags&65536)===0&&(m.flags|=256),m.flags|=65536,m.lanes=j,M!==mE&&(h=Error(r(422),{cause:M}),qg(Hs(h,_)))):(M!==mE&&(m=Error(r(423),{cause:M}),qg(Hs(m,_))),h=h.current.alternate,h.flags|=65536,j&=-j,h.lanes|=j,M=Hs(M,_),j=XE(h.stateNode,M,j),EE(h,j),Hr!==4&&(Hr=2)),!1;var I=Error(r(520),{cause:M});if(I=Hs(I,_),hx===null?hx=[I]:hx.push(I),Hr!==4&&(Hr=2),m===null)return!0;M=Hs(M,_),_=m;do{switch(_.tag){case 3:return _.flags|=65536,h=j&-j,_.lanes|=h,h=XE(_.stateNode,M,h),EE(_,h),!1;case 1:if(m=_.type,I=_.stateNode,(_.flags&128)===0&&(typeof m.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(_u===null||!_u.has(I))))return _.flags|=65536,j&=-j,_.lanes|=j,j=WI(j),qI(j,h,_,M),EE(_,j),!1}_=_.return}while(_!==null);return!1}var YE=Error(r(461)),oi=!1;function ea(h,m,_,M){m.child=h===null?ZL(m,null,_,M):ah(m,h.child,_,M)}function KI(h,m,_,M,j){_=_.render;var I=m.ref;if("ref"in M){var J={};for(var de in M)de!=="ref"&&(J[de]=M[de])}else J=M;return th(m),M=jE(h,m,_,J,I,j),de=PE(),h!==null&&!oi?(RE(h,m,j),Yl(h,m,j)):(Dn&&de&&hE(m),m.flags|=1,ea(h,m,M,j),m.child)}function XI(h,m,_,M,j){if(h===null){var I=_.type;return typeof I=="function"&&!cE(I)&&I.defaultProps===void 0&&_.compare===null?(m.tag=15,m.type=I,YI(h,m,I,M,j)):(h=Dy(_.type,null,M,m,m.mode,j),h.ref=m.ref,h.return=m,m.child=h)}if(I=h.child,!iN(h,j)){var J=I.memoizedProps;if(_=_.compare,_=_!==null?_:Vg,_(J,M)&&h.ref===m.ref)return Yl(h,m,j)}return m.flags|=1,h=Vl(I,M),h.ref=m.ref,h.return=m,m.child=h}function YI(h,m,_,M,j){if(h!==null){var I=h.memoizedProps;if(Vg(I,M)&&h.ref===m.ref)if(oi=!1,m.pendingProps=M=I,iN(h,j))(h.flags&131072)!==0&&(oi=!0);else return m.lanes=h.lanes,Yl(h,m,j)}return ZE(h,m,_,M,j)}function ZI(h,m,_,M){var j=M.children,I=h!==null?h.memoizedState:null;if(h===null&&m.stateNode===null&&(m.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),M.mode==="hidden"){if((m.flags&128)!==0){if(I=I!==null?I.baseLanes|_:_,h!==null){for(M=m.child=h.child,j=0;M!==null;)j=j|M.lanes|M.childLanes,M=M.sibling;M=j&~I}else M=0,m.child=null;return QI(h,m,I,_,M)}if((_&536870912)!==0)m.memoizedState={baseLanes:0,cachePool:null},h!==null&&Fy(m,I!==null?I.cachePool:null),I!==null?eI(m,I):AE(),tI(m);else return M=m.lanes=536870912,QI(h,m,I!==null?I.baseLanes|_:_,_,M)}else I!==null?(Fy(m,I.cachePool),eI(m,I),xu(),m.memoizedState=null):(h!==null&&Fy(m,null),AE(),xu());return ea(h,m,j,_),m.child}function ax(h,m){return h!==null&&h.tag===22||m.stateNode!==null||(m.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.sibling}function QI(h,m,_,M,j){var I=_E();return I=I===null?null:{parent:ai._currentValue,pool:I},m.memoizedState={baseLanes:_,cachePool:I},h!==null&&Fy(m,null),AE(),tI(m),h!==null&&qf(h,m,M,!0),m.childLanes=j,null}function ev(h,m){return m=nv({mode:m.mode,children:m.children},h.mode),m.ref=h.ref,h.child=m,m.return=h,m}function JI(h,m,_){return ah(m,h.child,null,_),h=ev(m,m.pendingProps),h.flags|=2,ys(m),m.memoizedState=null,h}function _re(h,m,_){var M=m.pendingProps,j=(m.flags&128)!==0;if(m.flags&=-129,h===null){if(Dn){if(M.mode==="hidden")return h=ev(m,M),m.lanes=536870912,ax(null,h);if(CE(m),(h=_r)?(h=dF(h,Gs),h=h!==null&&h.data==="&"?h:null,h!==null&&(m.memoizedState={dehydrated:h,treeContext:cu!==null?{id:nl,overflow:rl}:null,retryLane:536870912,hydrationErrors:null},_=LL(h),_.return=m,m.child=_,Qi=m,_r=null)):h=null,h===null)throw du(m);return m.lanes=536870912,null}return ev(m,M)}var I=h.memoizedState;if(I!==null){var J=I.dehydrated;if(CE(m),j)if(m.flags&256)m.flags&=-257,m=JI(h,m,_);else if(m.memoizedState!==null)m.child=h.child,m.flags|=128,m=null;else throw Error(r(558));else if(oi||qf(h,m,_,!1),j=(_&h.childLanes)!==0,oi||j){if(M=fr,M!==null&&(J=er(M,_),J!==0&&J!==I.retryLane))throw I.retryLane=J,Zd(h,J),Za(M,h,J),YE;dv(),m=JI(h,m,_)}else h=I.treeContext,_r=qs(J.nextSibling),Qi=m,Dn=!0,uu=null,Gs=!1,h!==null&&UL(m,h),m=ev(m,M),m.flags|=4096;return m}return h=Vl(h.child,{mode:M.mode,children:M.children}),h.ref=m.ref,m.child=h,h.return=m,h}function tv(h,m){var _=m.ref;if(_===null)h!==null&&h.ref!==null&&(m.flags|=4194816);else{if(typeof _!="function"&&typeof _!="object")throw Error(r(284));(h===null||h.ref!==_)&&(m.flags|=4194816)}}function ZE(h,m,_,M,j){return th(m),_=jE(h,m,_,M,void 0,j),M=PE(),h!==null&&!oi?(RE(h,m,j),Yl(h,m,j)):(Dn&&M&&hE(m),m.flags|=1,ea(h,m,_,j),m.child)}function e5(h,m,_,M,j,I){return th(m),m.updateQueue=null,_=rI(m,M,_,j),nI(h),M=PE(),h!==null&&!oi?(RE(h,m,I),Yl(h,m,I)):(Dn&&M&&hE(m),m.flags|=1,ea(h,m,_,I),m.child)}function t5(h,m,_,M,j){if(th(m),m.stateNode===null){var I=$f,J=_.contextType;typeof J=="object"&&J!==null&&(I=Ji(J)),I=new _(M,I),m.memoizedState=I.state!==null&&I.state!==void 0?I.state:null,I.updater=KE,m.stateNode=I,I._reactInternals=m,I=m.stateNode,I.props=M,I.state=m.memoizedState,I.refs={},SE(m),J=_.contextType,I.context=typeof J=="object"&&J!==null?Ji(J):$f,I.state=m.memoizedState,J=_.getDerivedStateFromProps,typeof J=="function"&&(qE(m,_,J,M),I.state=m.memoizedState),typeof _.getDerivedStateFromProps=="function"||typeof I.getSnapshotBeforeUpdate=="function"||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(J=I.state,typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount(),J!==I.state&&KE.enqueueReplaceState(I,I.state,null),ex(m,M,I,j),Jg(),I.state=m.memoizedState),typeof I.componentDidMount=="function"&&(m.flags|=4194308),M=!0}else if(h===null){I=m.stateNode;var de=m.memoizedProps,ke=oh(_,de);I.props=ke;var tt=I.context,ct=_.contextType;J=$f,typeof ct=="object"&&ct!==null&&(J=Ji(ct));var pt=_.getDerivedStateFromProps;ct=typeof pt=="function"||typeof I.getSnapshotBeforeUpdate=="function",de=m.pendingProps!==de,ct||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(de||tt!==J)&&BI(m,I,M,J),fu=!1;var it=m.memoizedState;I.state=it,ex(m,M,I,j),Jg(),tt=m.memoizedState,de||it!==tt||fu?(typeof pt=="function"&&(qE(m,_,pt,M),tt=m.memoizedState),(ke=fu||zI(m,_,ke,M,it,tt,J))?(ct||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount()),typeof I.componentDidMount=="function"&&(m.flags|=4194308)):(typeof I.componentDidMount=="function"&&(m.flags|=4194308),m.memoizedProps=M,m.memoizedState=tt),I.props=M,I.state=tt,I.context=J,M=ke):(typeof I.componentDidMount=="function"&&(m.flags|=4194308),M=!1)}else{I=m.stateNode,ME(h,m),J=m.memoizedProps,ct=oh(_,J),I.props=ct,pt=m.pendingProps,it=I.context,tt=_.contextType,ke=$f,typeof tt=="object"&&tt!==null&&(ke=Ji(tt)),de=_.getDerivedStateFromProps,(tt=typeof de=="function"||typeof I.getSnapshotBeforeUpdate=="function")||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(J!==pt||it!==ke)&&BI(m,I,M,ke),fu=!1,it=m.memoizedState,I.state=it,ex(m,M,I,j),Jg();var ot=m.memoizedState;J!==pt||it!==ot||fu||h!==null&&h.dependencies!==null&&Ly(h.dependencies)?(typeof de=="function"&&(qE(m,_,de,M),ot=m.memoizedState),(ct=fu||zI(m,_,ct,M,it,ot,ke)||h!==null&&h.dependencies!==null&&Ly(h.dependencies))?(tt||typeof I.UNSAFE_componentWillUpdate!="function"&&typeof I.componentWillUpdate!="function"||(typeof I.componentWillUpdate=="function"&&I.componentWillUpdate(M,ot,ke),typeof I.UNSAFE_componentWillUpdate=="function"&&I.UNSAFE_componentWillUpdate(M,ot,ke)),typeof I.componentDidUpdate=="function"&&(m.flags|=4),typeof I.getSnapshotBeforeUpdate=="function"&&(m.flags|=1024)):(typeof I.componentDidUpdate!="function"||J===h.memoizedProps&&it===h.memoizedState||(m.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||J===h.memoizedProps&&it===h.memoizedState||(m.flags|=1024),m.memoizedProps=M,m.memoizedState=ot),I.props=M,I.state=ot,I.context=ke,M=ct):(typeof I.componentDidUpdate!="function"||J===h.memoizedProps&&it===h.memoizedState||(m.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||J===h.memoizedProps&&it===h.memoizedState||(m.flags|=1024),M=!1)}return I=M,tv(h,m),M=(m.flags&128)!==0,I||M?(I=m.stateNode,_=M&&typeof _.getDerivedStateFromError!="function"?null:I.render(),m.flags|=1,h!==null&&M?(m.child=ah(m,h.child,null,j),m.child=ah(m,null,_,j)):ea(h,m,_,j),m.memoizedState=I.state,h=m.child):h=Yl(h,m,j),h}function n5(h,m,_,M){return Jd(),m.flags|=256,ea(h,m,_,M),m.child}var QE={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function JE(h){return{baseLanes:h,cachePool:GL()}}function eN(h,m,_){return h=h!==null?h.childLanes&~_:0,m&&(h|=_s),h}function r5(h,m,_){var M=m.pendingProps,j=!1,I=(m.flags&128)!==0,J;if((J=I)||(J=h!==null&&h.memoizedState===null?!1:(Zr.current&2)!==0),J&&(j=!0,m.flags&=-129),J=(m.flags&32)!==0,m.flags&=-33,h===null){if(Dn){if(j?gu(m):xu(),(h=_r)?(h=dF(h,Gs),h=h!==null&&h.data!=="&"?h:null,h!==null&&(m.memoizedState={dehydrated:h,treeContext:cu!==null?{id:nl,overflow:rl}:null,retryLane:536870912,hydrationErrors:null},_=LL(h),_.return=m,m.child=_,Qi=m,_r=null)):h=null,h===null)throw du(m);return LN(h)?m.lanes=32:m.lanes=536870912,null}var de=M.children;return M=M.fallback,j?(xu(),j=m.mode,de=nv({mode:"hidden",children:de},j),M=Qd(M,j,_,null),de.return=m,M.return=m,de.sibling=M,m.child=de,M=m.child,M.memoizedState=JE(_),M.childLanes=eN(h,J,_),m.memoizedState=QE,ax(null,M)):(gu(m),tN(m,de))}var ke=h.memoizedState;if(ke!==null&&(de=ke.dehydrated,de!==null)){if(I)m.flags&256?(gu(m),m.flags&=-257,m=nN(h,m,_)):m.memoizedState!==null?(xu(),m.child=h.child,m.flags|=128,m=null):(xu(),de=M.fallback,j=m.mode,M=nv({mode:"visible",children:M.children},j),de=Qd(de,j,_,null),de.flags|=2,M.return=m,de.return=m,M.sibling=de,m.child=M,ah(m,h.child,null,_),M=m.child,M.memoizedState=JE(_),M.childLanes=eN(h,J,_),m.memoizedState=QE,m=ax(null,M));else if(gu(m),LN(de)){if(J=de.nextSibling&&de.nextSibling.dataset,J)var tt=J.dgst;J=tt,M=Error(r(419)),M.stack="",M.digest=J,qg({value:M,source:null,stack:null}),m=nN(h,m,_)}else if(oi||qf(h,m,_,!1),J=(_&h.childLanes)!==0,oi||J){if(J=fr,J!==null&&(M=er(J,_),M!==0&&M!==ke.retryLane))throw ke.retryLane=M,Zd(h,M),Za(J,h,M),YE;ON(de)||dv(),m=nN(h,m,_)}else ON(de)?(m.flags|=192,m.child=h.child,m=null):(h=ke.treeContext,_r=qs(de.nextSibling),Qi=m,Dn=!0,uu=null,Gs=!1,h!==null&&UL(m,h),m=tN(m,M.children),m.flags|=4096);return m}return j?(xu(),de=M.fallback,j=m.mode,ke=h.child,tt=ke.sibling,M=Vl(ke,{mode:"hidden",children:M.children}),M.subtreeFlags=ke.subtreeFlags&65011712,tt!==null?de=Vl(tt,de):(de=Qd(de,j,_,null),de.flags|=2),de.return=m,M.return=m,M.sibling=de,m.child=M,ax(null,M),M=m.child,de=h.child.memoizedState,de===null?de=JE(_):(j=de.cachePool,j!==null?(ke=ai._currentValue,j=j.parent!==ke?{parent:ke,pool:ke}:j):j=GL(),de={baseLanes:de.baseLanes|_,cachePool:j}),M.memoizedState=de,M.childLanes=eN(h,J,_),m.memoizedState=QE,ax(h.child,M)):(gu(m),_=h.child,h=_.sibling,_=Vl(_,{mode:"visible",children:M.children}),_.return=m,_.sibling=null,h!==null&&(J=m.deletions,J===null?(m.deletions=[h],m.flags|=16):J.push(h)),m.child=_,m.memoizedState=null,_)}function tN(h,m){return m=nv({mode:"visible",children:m},h.mode),m.return=h,h.child=m}function nv(h,m){return h=xs(22,h,null,m),h.lanes=0,h}function nN(h,m,_){return ah(m,h.child,null,_),h=tN(m,m.pendingProps.children),h.flags|=2,m.memoizedState=null,h}function i5(h,m,_){h.lanes|=m;var M=h.alternate;M!==null&&(M.lanes|=m),xE(h.return,m,_)}function rN(h,m,_,M,j,I){var J=h.memoizedState;J===null?h.memoizedState={isBackwards:m,rendering:null,renderingStartTime:0,last:M,tail:_,tailMode:j,treeForkCount:I}:(J.isBackwards=m,J.rendering=null,J.renderingStartTime=0,J.last=M,J.tail=_,J.tailMode=j,J.treeForkCount=I)}function a5(h,m,_){var M=m.pendingProps,j=M.revealOrder,I=M.tail;M=M.children;var J=Zr.current,de=(J&2)!==0;if(de?(J=J&1|2,m.flags|=128):J&=1,ee(Zr,J),ea(h,m,M,_),M=Dn?Wg:0,!de&&h!==null&&(h.flags&128)!==0)e:for(h=m.child;h!==null;){if(h.tag===13)h.memoizedState!==null&&i5(h,_,m);else if(h.tag===19)i5(h,_,m);else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===m)break e;for(;h.sibling===null;){if(h.return===null||h.return===m)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}switch(j){case"forwards":for(_=m.child,j=null;_!==null;)h=_.alternate,h!==null&&Vy(h)===null&&(j=_),_=_.sibling;_=j,_===null?(j=m.child,m.child=null):(j=_.sibling,_.sibling=null),rN(m,!1,j,_,I,M);break;case"backwards":case"unstable_legacy-backwards":for(_=null,j=m.child,m.child=null;j!==null;){if(h=j.alternate,h!==null&&Vy(h)===null){m.child=j;break}h=j.sibling,j.sibling=_,_=j,j=h}rN(m,!0,_,null,I,M);break;case"together":rN(m,!1,null,null,void 0,M);break;default:m.memoizedState=null}return m.child}function Yl(h,m,_){if(h!==null&&(m.dependencies=h.dependencies),vu|=m.lanes,(_&m.childLanes)===0)if(h!==null){if(qf(h,m,_,!1),(_&m.childLanes)===0)return null}else return null;if(h!==null&&m.child!==h.child)throw Error(r(153));if(m.child!==null){for(h=m.child,_=Vl(h,h.pendingProps),m.child=_,_.return=m;h.sibling!==null;)h=h.sibling,_=_.sibling=Vl(h,h.pendingProps),_.return=m;_.sibling=null}return m.child}function iN(h,m){return(h.lanes&m)!==0?!0:(h=h.dependencies,!!(h!==null&&Ly(h)))}function wre(h,m,_){switch(m.tag){case 3:ue(m,m.stateNode.containerInfo),hu(m,ai,h.memoizedState.cache),Jd();break;case 27:case 5:Ee(m);break;case 4:ue(m,m.stateNode.containerInfo);break;case 10:hu(m,m.type,m.memoizedProps.value);break;case 31:if(m.memoizedState!==null)return m.flags|=128,CE(m),null;break;case 13:var M=m.memoizedState;if(M!==null)return M.dehydrated!==null?(gu(m),m.flags|=128,null):(_&m.child.childLanes)!==0?r5(h,m,_):(gu(m),h=Yl(h,m,_),h!==null?h.sibling:null);gu(m);break;case 19:var j=(h.flags&128)!==0;if(M=(_&m.childLanes)!==0,M||(qf(h,m,_,!1),M=(_&m.childLanes)!==0),j){if(M)return a5(h,m,_);m.flags|=128}if(j=m.memoizedState,j!==null&&(j.rendering=null,j.tail=null,j.lastEffect=null),ee(Zr,Zr.current),M)break;return null;case 22:return m.lanes=0,ZI(h,m,_,m.pendingProps);case 24:hu(m,ai,h.memoizedState.cache)}return Yl(h,m,_)}function s5(h,m,_){if(h!==null)if(h.memoizedProps!==m.pendingProps)oi=!0;else{if(!iN(h,_)&&(m.flags&128)===0)return oi=!1,wre(h,m,_);oi=(h.flags&131072)!==0}else oi=!1,Dn&&(m.flags&1048576)!==0&&FL(m,Wg,m.index);switch(m.lanes=0,m.tag){case 16:e:{var M=m.pendingProps;if(h=rh(m.elementType),m.type=h,typeof h=="function")cE(h)?(M=oh(h,M),m.tag=1,m=t5(null,m,h,M,_)):(m.tag=0,m=ZE(null,m,h,M,_));else{if(h!=null){var j=h.$$typeof;if(j===A){m.tag=11,m=KI(null,m,h,M,_);break e}else if(j===T){m.tag=14,m=XI(null,m,h,M,_);break e}}throw m=R(h)||h,Error(r(306,m,""))}}return m;case 0:return ZE(h,m,m.type,m.pendingProps,_);case 1:return M=m.type,j=oh(M,m.pendingProps),t5(h,m,M,j,_);case 3:e:{if(ue(m,m.stateNode.containerInfo),h===null)throw Error(r(387));M=m.pendingProps;var I=m.memoizedState;j=I.element,ME(h,m),ex(m,M,null,_);var J=m.memoizedState;if(M=J.cache,hu(m,ai,M),M!==I.cache&&bE(m,[ai],_,!0),Jg(),M=J.element,I.isDehydrated)if(I={element:M,isDehydrated:!1,cache:J.cache},m.updateQueue.baseState=I,m.memoizedState=I,m.flags&256){m=n5(h,m,M,_);break e}else if(M!==j){j=Hs(Error(r(424)),m),qg(j),m=n5(h,m,M,_);break e}else{switch(h=m.stateNode.containerInfo,h.nodeType){case 9:h=h.body;break;default:h=h.nodeName==="HTML"?h.ownerDocument.body:h}for(_r=qs(h.firstChild),Qi=m,Dn=!0,uu=null,Gs=!0,_=ZL(m,null,M,_),m.child=_;_;)_.flags=_.flags&-3|4096,_=_.sibling}else{if(Jd(),M===j){m=Yl(h,m,_);break e}ea(h,m,M,_)}m=m.child}return m;case 26:return tv(h,m),h===null?(_=xF(m.type,null,m.pendingProps,null))?m.memoizedState=_:Dn||(_=m.type,h=m.pendingProps,M=bv(ce.current).createElement(_),M[Bt]=m,M[ln]=h,ta(M,_,h),De(M),m.stateNode=M):m.memoizedState=xF(m.type,h.memoizedProps,m.pendingProps,h.memoizedState),null;case 27:return Ee(m),h===null&&Dn&&(M=m.stateNode=mF(m.type,m.pendingProps,ce.current),Qi=m,Gs=!0,j=_r,Eu(m.type)?(IN=j,_r=qs(M.firstChild)):_r=j),ea(h,m,m.pendingProps.children,_),tv(h,m),h===null&&(m.flags|=4194304),m.child;case 5:return h===null&&Dn&&((j=M=_r)&&(M=Qre(M,m.type,m.pendingProps,Gs),M!==null?(m.stateNode=M,Qi=m,_r=qs(M.firstChild),Gs=!1,j=!0):j=!1),j||du(m)),Ee(m),j=m.type,I=m.pendingProps,J=h!==null?h.memoizedProps:null,M=I.children,PN(j,I)?M=null:J!==null&&PN(j,J)&&(m.flags|=32),m.memoizedState!==null&&(j=jE(h,m,fre,null,null,_),vx._currentValue=j),tv(h,m),ea(h,m,M,_),m.child;case 6:return h===null&&Dn&&((h=_=_r)&&(_=Jre(_,m.pendingProps,Gs),_!==null?(m.stateNode=_,Qi=m,_r=null,h=!0):h=!1),h||du(m)),null;case 13:return r5(h,m,_);case 4:return ue(m,m.stateNode.containerInfo),M=m.pendingProps,h===null?m.child=ah(m,null,M,_):ea(h,m,M,_),m.child;case 11:return KI(h,m,m.type,m.pendingProps,_);case 7:return ea(h,m,m.pendingProps,_),m.child;case 8:return ea(h,m,m.pendingProps.children,_),m.child;case 12:return ea(h,m,m.pendingProps.children,_),m.child;case 10:return M=m.pendingProps,hu(m,m.type,M.value),ea(h,m,M.children,_),m.child;case 9:return j=m.type._context,M=m.pendingProps.children,th(m),j=Ji(j),M=M(j),m.flags|=1,ea(h,m,M,_),m.child;case 14:return XI(h,m,m.type,m.pendingProps,_);case 15:return YI(h,m,m.type,m.pendingProps,_);case 19:return a5(h,m,_);case 31:return _re(h,m,_);case 22:return ZI(h,m,_,m.pendingProps);case 24:return th(m),M=Ji(ai),h===null?(j=_E(),j===null&&(j=fr,I=yE(),j.pooledCache=I,I.refCount++,I!==null&&(j.pooledCacheLanes|=_),j=I),m.memoizedState={parent:M,cache:j},SE(m),hu(m,ai,j)):((h.lanes&_)!==0&&(ME(h,m),ex(m,null,null,_),Jg()),j=h.memoizedState,I=m.memoizedState,j.parent!==M?(j={parent:M,cache:M},m.memoizedState=j,m.lanes===0&&(m.memoizedState=m.updateQueue.baseState=j),hu(m,ai,M)):(M=I.cache,hu(m,ai,M),M!==j.cache&&bE(m,[ai],_,!0))),ea(h,m,m.pendingProps.children,_),m.child;case 29:throw m.pendingProps}throw Error(r(156,m.tag))}function Zl(h){h.flags|=4}function aN(h,m,_,M,j){if((m=(h.mode&32)!==0)&&(m=!1),m){if(h.flags|=16777216,(j&335544128)===j)if(h.stateNode.complete)h.flags|=8192;else if(R5())h.flags|=8192;else throw ih=zy,wE}else h.flags&=-16777217}function o5(h,m){if(m.type!=="stylesheet"||(m.state.loading&4)!==0)h.flags&=-16777217;else if(h.flags|=16777216,!wF(m))if(R5())h.flags|=8192;else throw ih=zy,wE}function rv(h,m){m!==null&&(h.flags|=4),h.flags&16384&&(m=h.tag!==22?Nt():536870912,h.lanes|=m,am|=m)}function sx(h,m){if(!Dn)switch(h.tailMode){case"hidden":m=h.tail;for(var _=null;m!==null;)m.alternate!==null&&(_=m),m=m.sibling;_===null?h.tail=null:_.sibling=null;break;case"collapsed":_=h.tail;for(var M=null;_!==null;)_.alternate!==null&&(M=_),_=_.sibling;M===null?m||h.tail===null?h.tail=null:h.tail.sibling=null:M.sibling=null}}function wr(h){var m=h.alternate!==null&&h.alternate.child===h.child,_=0,M=0;if(m)for(var j=h.child;j!==null;)_|=j.lanes|j.childLanes,M|=j.subtreeFlags&65011712,M|=j.flags&65011712,j.return=h,j=j.sibling;else for(j=h.child;j!==null;)_|=j.lanes|j.childLanes,M|=j.subtreeFlags,M|=j.flags,j.return=h,j=j.sibling;return h.subtreeFlags|=M,h.childLanes=_,m}function Sre(h,m,_){var M=m.pendingProps;switch(fE(m),m.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wr(m),null;case 1:return wr(m),null;case 3:return _=m.stateNode,M=null,h!==null&&(M=h.memoizedState.cache),m.memoizedState.cache!==M&&(m.flags|=2048),ql(ai),me(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(h===null||h.child===null)&&(Wf(m)?Zl(m):h===null||h.memoizedState.isDehydrated&&(m.flags&256)===0||(m.flags|=1024,pE())),wr(m),null;case 26:var j=m.type,I=m.memoizedState;return h===null?(Zl(m),I!==null?(wr(m),o5(m,I)):(wr(m),aN(m,j,null,M,_))):I?I!==h.memoizedState?(Zl(m),wr(m),o5(m,I)):(wr(m),m.flags&=-16777217):(h=h.memoizedProps,h!==M&&Zl(m),wr(m),aN(m,j,h,M,_)),null;case 27:if(be(m),_=ce.current,j=m.type,h!==null&&m.stateNode!=null)h.memoizedProps!==M&&Zl(m);else{if(!M){if(m.stateNode===null)throw Error(r(166));return wr(m),null}h=te.current,Wf(m)?zL(m):(h=mF(j,M,_),m.stateNode=h,Zl(m))}return wr(m),null;case 5:if(be(m),j=m.type,h!==null&&m.stateNode!=null)h.memoizedProps!==M&&Zl(m);else{if(!M){if(m.stateNode===null)throw Error(r(166));return wr(m),null}if(I=te.current,Wf(m))zL(m);else{var J=bv(ce.current);switch(I){case 1:I=J.createElementNS("http://www.w3.org/2000/svg",j);break;case 2:I=J.createElementNS("http://www.w3.org/1998/Math/MathML",j);break;default:switch(j){case"svg":I=J.createElementNS("http://www.w3.org/2000/svg",j);break;case"math":I=J.createElementNS("http://www.w3.org/1998/Math/MathML",j);break;case"script":I=J.createElement("div"),I.innerHTML=" +
+ Plate {plate.index} +
+ {plate.name || `${plate.filaments.length} filament${plate.filaments.length !== 1 ? 's' : ''}`} + {plate.print_time_seconds ? ` • ${formatTime(plate.print_time_seconds)}` : ''} +
q?(Q.sortIndex=K,e(u,Q),n(c)===null&&Q===n(u)&&(v?(E(T),T=-1):v=!0,Y(N,K-q))):(Q.sortIndex=W,e(c,Q),b||p||(b=!0,C||(C=!0,I()))),Q},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(Q){var V=g;return function(){var K=g;g=V;try{return Q.apply(this,arguments)}finally{g=K}}}})(ZN)),ZN}var BF;function Cie(){return BF||(BF=1,YN.exports=Tie()),YN.exports}var QN={exports:{}},ga={};var HF;function kie(){if(HF)return ga;HF=1;var t=ug();function e(c){var u="https://react.dev/errors/"+c;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),QN.exports=kie(),QN.exports}var VF;function jie(){if(VF)return Ex;VF=1;var t=Cie(),e=ug(),n=uG();function r(h){var m="https://react.dev/errors/"+h;if(1W||(h.current=q[W],q[W]=null,W--)}function ee(h,m){W++,q[W]=h.current,h.current=m}var te=F(null),ie=F(null),ce=F(null),pe=F(null);function ue(h,m){switch(ee(ce,m),ee(ie,h),ee(te,null),m.nodeType){case 9:case 11:h=(h=m.documentElement)&&(h=h.namespaceURI)?aF(h):0;break;default:if(h=m.tagName,m=m.namespaceURI)m=aF(m),h=sF(m,h);else switch(h){case"svg":h=1;break;case"math":h=2;break;default:h=0}}G(te),ee(te,h)}function me(){G(te),G(ie),G(ce)}function Se(h){h.memoizedState!==null&&ee(pe,h);var m=te.current,_=sF(m,h.type);m!==_&&(ee(ie,h),ee(te,_))}function be(h){ie.current===h&&(G(te),G(ie)),pe.current===h&&(G(pe),vx._currentValue=K)}var oe,He;function $(h){if(oe===void 0)try{throw Error()}catch(_){var m=_.stack.trim().match(/\n( *(at )?)/);oe=m&&m[1]||"",He=-1<_.stack.indexOf(` at`)?" ()":-1<_.stack.indexOf("@")?"@unknown:0:0":""}return` -`+le+h+He}var z=!1;function se(h,m){if(!h||z)return"";z=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var M={DetermineComponentFrameRoot:function(){try{if(m){var pt=function(){throw Error()};if(Object.defineProperty(pt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pt,[])}catch(ot){var it=ot}Reflect.construct(h,[],pt)}else{try{pt.call()}catch(ot){it=ot}h.call(pt.prototype)}}else{try{throw Error()}catch(ot){it=ot}(pt=h())&&typeof pt.catch=="function"&&pt.catch(function(){})}}catch(ot){if(ot&&it&&typeof ot.stack=="string")return[ot.stack,it.stack]}return[null,null]}};M.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var j=Object.getOwnPropertyDescriptor(M.DetermineComponentFrameRoot,"name");j&&j.configurable&&Object.defineProperty(M.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var I=M.DetermineComponentFrameRoot(),J=I[0],de=I[1];if(J&&de){var ke=J.split(` +`+oe+h+He}var z=!1;function se(h,m){if(!h||z)return"";z=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var M={DetermineComponentFrameRoot:function(){try{if(m){var pt=function(){throw Error()};if(Object.defineProperty(pt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pt,[])}catch(ot){var it=ot}Reflect.construct(h,[],pt)}else{try{pt.call()}catch(ot){it=ot}h.call(pt.prototype)}}else{try{throw Error()}catch(ot){it=ot}(pt=h())&&typeof pt.catch=="function"&&pt.catch(function(){})}}catch(ot){if(ot&&it&&typeof ot.stack=="string")return[ot.stack,it.stack]}return[null,null]}};M.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var j=Object.getOwnPropertyDescriptor(M.DetermineComponentFrameRoot,"name");j&&j.configurable&&Object.defineProperty(M.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var L=M.DetermineComponentFrameRoot(),J=L[0],de=L[1];if(J&&de){var ke=J.split(` `),tt=de.split(` `);for(j=M=0;Mj||ke[M]!==tt[j]){var ct=` -`+ke[M].replace(" at new "," at ");return h.displayName&&ct.includes("")&&(ct=ct.replace("",h.displayName)),ct}while(1<=M&&0<=j);break}}}finally{z=!1,Error.prepareStackTrace=_}return(_=h?h.displayName||h.name:"")?$(_):""}function U(h,m){switch(h.tag){case 26:case 27:case 5:return $(h.type);case 16:return $("Lazy");case 13:return h.child!==m&&m!==null?$("Suspense Fallback"):$("Suspense");case 19:return $("SuspenseList");case 0:case 15:return se(h.type,!1);case 11:return se(h.type.render,!1);case 1:return se(h.type,!0);case 31:return $("Activity");default:return""}}function Q(h){try{var m="",_=null;do m+=U(h,_),_=h,h=h.return;while(h);return m}catch(M){return` +`+ke[M].replace(" at new "," at ");return h.displayName&&ct.includes("")&&(ct=ct.replace("",h.displayName)),ct}while(1<=M&&0<=j);break}}}finally{z=!1,Error.prepareStackTrace=_}return(_=h?h.displayName||h.name:"")?$(_):""}function U(h,m){switch(h.tag){case 26:case 27:case 5:return $(h.type);case 16:return $("Lazy");case 13:return h.child!==m&&m!==null?$("Suspense Fallback"):$("Suspense");case 19:return $("SuspenseList");case 0:case 15:return se(h.type,!1);case 11:return se(h.type.render,!1);case 1:return se(h.type,!0);case 31:return $("Activity");default:return""}}function Z(h){try{var m="",_=null;do m+=U(h,_),_=h,h=h.return;while(h);return m}catch(M){return` Error generating stack: `+M.message+` -`+M.stack}}var oe=Object.prototype.hasOwnProperty,je=t.unstable_scheduleCallback,Se=t.unstable_cancelCallback,fe=t.unstable_shouldYield,H=t.unstable_requestPaint,P=t.unstable_now,re=t.unstable_getCurrentPriorityLevel,_e=t.unstable_ImmediatePriority,Me=t.unstable_UserBlockingPriority,we=t.unstable_NormalPriority,rt=t.unstable_LowPriority,We=t.unstable_IdlePriority,at=t.log,ut=t.unstable_setDisableYieldValue,Le=null,he=null;function Ke(h){if(typeof at=="function"&&ut(h),he&&typeof he.setStrictMode=="function")try{he.setStrictMode(Le,h)}catch{}}var Xe=Math.clz32?Math.clz32:ne,Qe=Math.log,lt=Math.LN2;function ne(h){return h>>>=0,h===0?32:31-(Qe(h)/lt|0)|0}var ze=256,ge=262144,Be=4194304;function Pe(h){var m=h&42;if(m!==0)return m;switch(h&-h){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 h&261888;case 262144:case 524288:case 1048576:case 2097152:return h&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return h&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return h}}function Ne(h,m,_){var M=h.pendingLanes;if(M===0)return 0;var j=0,I=h.suspendedLanes,J=h.pingedLanes;h=h.warmLanes;var de=M&134217727;return de!==0?(M=de&~I,M!==0?j=Pe(M):(J&=de,J!==0?j=Pe(J):_||(_=de&~h,_!==0&&(j=Pe(_))))):(de=M&~I,de!==0?j=Pe(de):J!==0?j=Pe(J):_||(_=M&~h,_!==0&&(j=Pe(_)))),j===0?0:m!==0&&m!==j&&(m&I)===0&&(I=j&-j,_=m&-m,I>=_||I===32&&(_&4194048)!==0)?m:j}function Ye(h,m){return(h.pendingLanes&~(h.suspendedLanes&~h.pingedLanes)&m)===0}function dt(h,m){switch(h){case 1:case 2:case 4:case 8:case 64:return m+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 m+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 Nt(){var h=Be;return Be<<=1,(Be&62914560)===0&&(Be=4194304),h}function Dt(h){for(var m=[],_=0;31>_;_++)m.push(h);return m}function Zt(h,m){h.pendingLanes|=m,m!==268435456&&(h.suspendedLanes=0,h.pingedLanes=0,h.warmLanes=0)}function jt(h,m,_,M,j,I){var J=h.pendingLanes;h.pendingLanes=_,h.suspendedLanes=0,h.pingedLanes=0,h.warmLanes=0,h.expiredLanes&=_,h.entangledLanes&=_,h.errorRecoveryDisabledLanes&=_,h.shellSuspendCounter=0;var de=h.entanglements,ke=h.expirationTimes,tt=h.hiddenUpdates;for(_=J&~_;0<_;){var ct=31-Xe(_),pt=1<"u")return null;try{return h.activeElement||h.body}catch{return h.body}}var Yr=/[\n"\\]/g;function Vn(h){return h.replace(Yr,function(m){return"\\"+m.charCodeAt(0).toString(16)+" "})}function Mo(h,m,_,M,j,I,J,de){h.name="",J!=null&&typeof J!="function"&&typeof J!="symbol"&&typeof J!="boolean"?h.type=J:h.removeAttribute("type"),m!=null?J==="number"?(m===0&&h.value===""||h.value!=m)&&(h.value=""+wn(m)):h.value!==""+wn(m)&&(h.value=""+wn(m)):J!=="submit"&&J!=="reset"||h.removeAttribute("value"),m!=null?Li(h,J,wn(m)):_!=null?Li(h,J,wn(_)):M!=null&&h.removeAttribute("value"),j==null&&I!=null&&(h.defaultChecked=!!I),j!=null&&(h.checked=j&&typeof j!="function"&&typeof j!="symbol"),de!=null&&typeof de!="function"&&typeof de!="symbol"&&typeof de!="boolean"?h.name=""+wn(de):h.removeAttribute("name")}function Wn(h,m,_,M,j,I,J,de){if(I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(h.type=I),m!=null||_!=null){if(!(I!=="submit"&&I!=="reset"||m!=null)){an(h);return}_=_!=null?""+wn(_):"",m=m!=null?""+wn(m):_,de||m===h.value||(h.value=m),h.defaultValue=m}M=M??j,M=typeof M!="function"&&typeof M!="symbol"&&!!M,h.checked=de?h.checked:!!M,h.defaultChecked=!!M,J!=null&&typeof J!="function"&&typeof J!="symbol"&&typeof J!="boolean"&&(h.name=J),an(h)}function Li(h,m,_){m==="number"&&zr(h.ownerDocument)===h||h.defaultValue===""+_||(h.defaultValue=""+_)}function yi(h,m,_,M){if(h=h.options,m){m={};for(var j=0;j<_.length;j++)m["$"+_[j]]=!0;for(_=0;_"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),q2=!1;if($l)try{var Fg={};Object.defineProperty(Fg,"passive",{get:function(){q2=!0}}),window.addEventListener("test",Fg,Fg),window.removeEventListener("test",Fg,Fg)}catch{q2=!1}var lu=null,K2=null,My=null;function sL(){if(My)return My;var h,m=K2,_=m.length,M,j="value"in lu?lu.value:lu.textContent,I=j.length;for(h=0;h<_&&m[h]===j[h];h++);var J=_-h;for(M=1;M<=J&&m[_-M]===j[I-M];M++);return My=j.slice(h,1=Bg),hL=" ",fL=!1;function mL(h,m){switch(h){case"keyup":return Gne.indexOf(m.keyCode)!==-1;case"keydown":return m.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pL(h){return h=h.detail,typeof h=="object"&&"data"in h?h.data:null}var Uf=!1;function qne(h,m){switch(h){case"compositionend":return pL(m);case"keypress":return m.which!==32?null:(fL=!0,hL);case"textInput":return h=m.data,h===hL&&fL?null:h;default:return null}}function Kne(h,m){if(Uf)return h==="compositionend"||!J2&&mL(h,m)?(h=sL(),My=K2=lu=null,Uf=!1,h):null;switch(h){case"paste":return null;case"keypress":if(!(m.ctrlKey||m.altKey||m.metaKey)||m.ctrlKey&&m.altKey){if(m.char&&1=m)return{node:_,offset:m-h};h=M}e:{for(;_;){if(_.nextSibling){_=_.nextSibling;break e}_=_.parentNode}_=void 0}_=SL(_)}}function EL(h,m){return h&&m?h===m?!0:h&&h.nodeType===3?!1:m&&m.nodeType===3?EL(h,m.parentNode):"contains"in h?h.contains(m):h.compareDocumentPosition?!!(h.compareDocumentPosition(m)&16):!1:!1}function NL(h){h=h!=null&&h.ownerDocument!=null&&h.ownerDocument.defaultView!=null?h.ownerDocument.defaultView:window;for(var m=zr(h.document);m instanceof h.HTMLIFrameElement;){try{var _=typeof m.contentWindow.location.href=="string"}catch{_=!1}if(_)h=m.contentWindow;else break;m=zr(h.document)}return m}function nE(h){var m=h&&h.nodeName&&h.nodeName.toLowerCase();return m&&(m==="input"&&(h.type==="text"||h.type==="search"||h.type==="tel"||h.type==="url"||h.type==="password")||m==="textarea"||h.contentEditable==="true")}var nre=$l&&"documentMode"in document&&11>=document.documentMode,zf=null,rE=null,Gg=null,iE=!1;function AL(h,m,_){var M=_.window===_?_.document:_.nodeType===9?_:_.ownerDocument;iE||zf==null||zf!==zr(M)||(M=zf,"selectionStart"in M&&nE(M)?M={start:M.selectionStart,end:M.selectionEnd}:(M=(M.ownerDocument&&M.ownerDocument.defaultView||window).getSelection(),M={anchorNode:M.anchorNode,anchorOffset:M.anchorOffset,focusNode:M.focusNode,focusOffset:M.focusOffset}),Gg&&Vg(Gg,M)||(Gg=M,M=xv(rE,"onSelect"),0>=J,j-=J,nl=1<<32-Xe(m)+j|_<dn?(Pn=Ut,Ut=null):Pn=Ut.sibling;var Fn=it(Ge,Ut,et[dn],ft);if(Fn===null){Ut===null&&(Ut=Pn);break}h&&Ut&&Fn.alternate===null&&m(Ge,Ut),Fe=I(Fn,Fe,dn),In===null?Gt=Fn:In.sibling=Fn,In=Fn,Ut=Pn}if(dn===et.length)return _(Ge,Ut),Dn&&Gl(Ge,dn),Gt;if(Ut===null){for(;dndn?(Pn=Ut,Ut=null):Pn=Ut.sibling;var ku=it(Ge,Ut,Fn.value,ft);if(ku===null){Ut===null&&(Ut=Pn);break}h&&Ut&&ku.alternate===null&&m(Ge,Ut),Fe=I(ku,Fe,dn),In===null?Gt=ku:In.sibling=ku,In=ku,Ut=Pn}if(Fn.done)return _(Ge,Ut),Dn&&Gl(Ge,dn),Gt;if(Ut===null){for(;!Fn.done;dn++,Fn=et.next())Fn=pt(Ge,Fn.value,ft),Fn!==null&&(Fe=I(Fn,Fe,dn),In===null?Gt=Fn:In.sibling=Fn,In=Fn);return Dn&&Gl(Ge,dn),Gt}for(Ut=M(Ut);!Fn.done;dn++,Fn=et.next())Fn=ot(Ut,Ge,dn,Fn.value,ft),Fn!==null&&(h&&Fn.alternate!==null&&Ut.delete(Fn.key===null?dn:Fn.key),Fe=I(Fn,Fe,dn),In===null?Gt=Fn:In.sibling=Fn,In=Fn);return h&&Ut.forEach(function(wie){return m(Ge,wie)}),Dn&&Gl(Ge,dn),Gt}function ir(Ge,Fe,et,ft){if(typeof et=="object"&&et!==null&&et.type===v&&et.key===null&&(et=et.props.children),typeof et=="object"&&et!==null){switch(et.$$typeof){case p:e:{for(var Gt=et.key;Fe!==null;){if(Fe.key===Gt){if(Gt=et.type,Gt===v){if(Fe.tag===7){_(Ge,Fe.sibling),ft=j(Fe,et.props.children),ft.return=Ge,Ge=ft;break e}}else if(Fe.elementType===Gt||typeof Gt=="object"&&Gt!==null&&Gt.$$typeof===O&&rh(Gt)===Fe.type){_(Ge,Fe.sibling),ft=j(Fe,et.props),Zg(ft,et),ft.return=Ge,Ge=ft;break e}_(Ge,Fe);break}else m(Ge,Fe);Fe=Fe.sibling}et.type===v?(ft=Qd(et.props.children,Ge.mode,ft,et.key),ft.return=Ge,Ge=ft):(ft=Dy(et.type,et.key,et.props,null,Ge.mode,ft),Zg(ft,et),ft.return=Ge,Ge=ft)}return J(Ge);case b:e:{for(Gt=et.key;Fe!==null;){if(Fe.key===Gt)if(Fe.tag===4&&Fe.stateNode.containerInfo===et.containerInfo&&Fe.stateNode.implementation===et.implementation){_(Ge,Fe.sibling),ft=j(Fe,et.children||[]),ft.return=Ge,Ge=ft;break e}else{_(Ge,Fe);break}else m(Ge,Fe);Fe=Fe.sibling}ft=dE(et,Ge.mode,ft),ft.return=Ge,Ge=ft}return J(Ge);case O:return et=rh(et),ir(Ge,Fe,et,ft)}if(G(et))return It(Ge,Fe,et,ft);if(L(et)){if(Gt=L(et),typeof Gt!="function")throw Error(r(150));return et=Gt.call(et),Qt(Ge,Fe,et,ft)}if(typeof et.then=="function")return ir(Ge,Fe,By(et),ft);if(et.$$typeof===w)return ir(Ge,Fe,Iy(Ge,et),ft);Hy(Ge,et)}return typeof et=="string"&&et!==""||typeof et=="number"||typeof et=="bigint"?(et=""+et,Fe!==null&&Fe.tag===6?(_(Ge,Fe.sibling),ft=j(Fe,et),ft.return=Ge,Ge=ft):(_(Ge,Fe),ft=uE(et,Ge.mode,ft),ft.return=Ge,Ge=ft),J(Ge)):_(Ge,Fe)}return function(Ge,Fe,et,ft){try{Yg=0;var Gt=ir(Ge,Fe,et,ft);return Zf=null,Gt}catch(Ut){if(Ut===Yf||Ut===Uy)throw Ut;var In=xs(29,Ut,null,Ge.mode);return In.lanes=ft,In.return=Ge,In}finally{}}}var ah=YL(!0),ZL=YL(!1),fu=!1;function SE(h){h.updateQueue={baseState:h.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ME(h,m){h=h.updateQueue,m.updateQueue===h&&(m.updateQueue={baseState:h.baseState,firstBaseUpdate:h.firstBaseUpdate,lastBaseUpdate:h.lastBaseUpdate,shared:h.shared,callbacks:null})}function mu(h){return{lane:h,tag:0,payload:null,callback:null,next:null}}function pu(h,m,_){var M=h.updateQueue;if(M===null)return null;if(M=M.shared,(Bn&2)!==0){var j=M.pending;return j===null?m.next=m:(m.next=j.next,j.next=m),M.pending=m,m=Ry(h),DL(h,null,_),m}return Py(h,M,m,_),Ry(h)}function Qg(h,m,_){if(m=m.updateQueue,m!==null&&(m=m.shared,(_&4194048)!==0)){var M=m.lanes;M&=h.pendingLanes,_|=M,m.lanes=_,qt(h,_)}}function EE(h,m){var _=h.updateQueue,M=h.alternate;if(M!==null&&(M=M.updateQueue,_===M)){var j=null,I=null;if(_=_.firstBaseUpdate,_!==null){do{var J={lane:_.lane,tag:_.tag,payload:_.payload,callback:null,next:null};I===null?j=I=J:I=I.next=J,_=_.next}while(_!==null);I===null?j=I=m:I=I.next=m}else j=I=m;_={baseState:M.baseState,firstBaseUpdate:j,lastBaseUpdate:I,shared:M.shared,callbacks:M.callbacks},h.updateQueue=_;return}h=_.lastBaseUpdate,h===null?_.firstBaseUpdate=m:h.next=m,_.lastBaseUpdate=m}var NE=!1;function Jg(){if(NE){var h=Xf;if(h!==null)throw h}}function ex(h,m,_,M){NE=!1;var j=h.updateQueue;fu=!1;var I=j.firstBaseUpdate,J=j.lastBaseUpdate,de=j.shared.pending;if(de!==null){j.shared.pending=null;var ke=de,tt=ke.next;ke.next=null,J===null?I=tt:J.next=tt,J=ke;var ct=h.alternate;ct!==null&&(ct=ct.updateQueue,de=ct.lastBaseUpdate,de!==J&&(de===null?ct.firstBaseUpdate=tt:de.next=tt,ct.lastBaseUpdate=ke))}if(I!==null){var pt=j.baseState;J=0,ct=tt=ke=null,de=I;do{var it=de.lane&-536870913,ot=it!==de.lane;if(ot?(jn&it)===it:(M&it)===it){it!==0&&it===Kf&&(NE=!0),ct!==null&&(ct=ct.next={lane:0,tag:de.tag,payload:de.payload,callback:null,next:null});e:{var It=h,Qt=de;it=m;var ir=_;switch(Qt.tag){case 1:if(It=Qt.payload,typeof It=="function"){pt=It.call(ir,pt,it);break e}pt=It;break e;case 3:It.flags=It.flags&-65537|128;case 0:if(It=Qt.payload,it=typeof It=="function"?It.call(ir,pt,it):It,it==null)break e;pt=f({},pt,it);break e;case 2:fu=!0}}it=de.callback,it!==null&&(h.flags|=64,ot&&(h.flags|=8192),ot=j.callbacks,ot===null?j.callbacks=[it]:ot.push(it))}else ot={lane:it,tag:de.tag,payload:de.payload,callback:de.callback,next:null},ct===null?(tt=ct=ot,ke=pt):ct=ct.next=ot,J|=it;if(de=de.next,de===null){if(de=j.shared.pending,de===null)break;ot=de,de=ot.next,ot.next=null,j.lastBaseUpdate=ot,j.shared.pending=null}}while(!0);ct===null&&(ke=pt),j.baseState=ke,j.firstBaseUpdate=tt,j.lastBaseUpdate=ct,I===null&&(j.shared.lanes=0),vu|=J,h.lanes=J,h.memoizedState=pt}}function QL(h,m){if(typeof h!="function")throw Error(r(191,h));h.call(m)}function JL(h,m){var _=h.callbacks;if(_!==null)for(h.callbacks=null,h=0;h<_.length;h++)QL(_[h],m)}var Qf=F(null),$y=F(0);function eI(h,m){h=nc,ee($y,h),ee(Qf,m),nc=h|m.baseLanes}function AE(){ee($y,nc),ee(Qf,Qf.current)}function TE(){nc=$y.current,V(Qf),V($y)}var bs=F(null),Ws=null;function gu(h){var m=h.alternate;ee(Zr,Zr.current&1),ee(bs,h),Ws===null&&(m===null||Qf.current!==null||m.memoizedState!==null)&&(Ws=h)}function CE(h){ee(Zr,Zr.current),ee(bs,h),Ws===null&&(Ws=h)}function tI(h){h.tag===22?(ee(Zr,Zr.current),ee(bs,h),Ws===null&&(Ws=h)):xu()}function xu(){ee(Zr,Zr.current),ee(bs,bs.current)}function ys(h){V(bs),Ws===h&&(Ws=null),V(Zr)}var Zr=F(0);function Vy(h){for(var m=h;m!==null;){if(m.tag===13){var _=m.memoizedState;if(_!==null&&(_=_.dehydrated,_===null||ON(_)||LN(_)))return m}else if(m.tag===19&&(m.memoizedProps.revealOrder==="forwards"||m.memoizedProps.revealOrder==="backwards"||m.memoizedProps.revealOrder==="unstable_legacy-backwards"||m.memoizedProps.revealOrder==="together")){if((m.flags&128)!==0)return m}else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===h)break;for(;m.sibling===null;){if(m.return===null||m.return===h)return null;m=m.return}m.sibling.return=m.return,m=m.sibling}return null}var Kl=0,un=null,nr=null,si=null,Gy=!1,Jf=!1,sh=!1,Wy=0,tx=0,em=null,hre=0;function Br(){throw Error(r(321))}function kE(h,m){if(m===null)return!1;for(var _=0;_I?I:8;var J=Z.T,de={};Z.T=de,GE(h,!1,m,_);try{var ke=j(),tt=Z.S;if(tt!==null&&tt(de,ke),ke!==null&&typeof ke=="object"&&typeof ke.then=="function"){var ct=dre(ke,M);rx(h,m,ct,ws(h))}else rx(h,m,M,ws(h))}catch(pt){rx(h,m,{then:function(){},status:"rejected",reason:pt},ws())}finally{q.p=I,J!==null&&de.types!==null&&(J.types=de.types),Z.T=J}}function xre(){}function $E(h,m,_,M){if(h.tag!==5)throw Error(r(476));var j=jI(h).queue;kI(h,j,m,Y,_===null?xre:function(){return PI(h),_(M)})}function jI(h){var m=h.memoizedState;if(m!==null)return m;m={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xl,lastRenderedState:Y},next:null};var _={};return m.next={memoizedState:_,baseState:_,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xl,lastRenderedState:_},next:null},h.memoizedState=m,h=h.alternate,h!==null&&(h.memoizedState=m),m}function PI(h){var m=jI(h);m.next===null&&(m=h.alternate.memoizedState),rx(h,m.next.queue,{},ws())}function VE(){return Ji(vx)}function RI(){return Qr().memoizedState}function DI(){return Qr().memoizedState}function bre(h){for(var m=h.return;m!==null;){switch(m.tag){case 24:case 3:var _=ws();h=mu(_);var M=pu(m,h,_);M!==null&&(Za(M,m,_),Qg(M,m,_)),m={cache:yE()},h.payload=m;return}m=m.return}}function yre(h,m,_){var M=ws();_={lane:M,revertLane:0,gesture:null,action:_,hasEagerState:!1,eagerState:null,next:null},Qy(h)?LI(m,_):(_=lE(h,m,_,M),_!==null&&(Za(_,h,M),II(_,m,M)))}function OI(h,m,_){var M=ws();rx(h,m,_,M)}function rx(h,m,_,M){var j={lane:M,revertLane:0,gesture:null,action:_,hasEagerState:!1,eagerState:null,next:null};if(Qy(h))LI(m,j);else{var I=h.alternate;if(h.lanes===0&&(I===null||I.lanes===0)&&(I=m.lastRenderedReducer,I!==null))try{var J=m.lastRenderedState,de=I(J,_);if(j.hasEagerState=!0,j.eagerState=de,gs(de,J))return Py(h,m,j,0),fr===null&&jy(),!1}catch{}finally{}if(_=lE(h,m,j,M),_!==null)return Za(_,h,M),II(_,m,M),!0}return!1}function GE(h,m,_,M){if(M={lane:2,revertLane:SN(),gesture:null,action:M,hasEagerState:!1,eagerState:null,next:null},Qy(h)){if(m)throw Error(r(479))}else m=lE(h,_,M,2),m!==null&&Za(m,h,2)}function Qy(h){var m=h.alternate;return h===un||m!==null&&m===un}function LI(h,m){Jf=Gy=!0;var _=h.pending;_===null?m.next=m:(m.next=_.next,_.next=m),h.pending=m}function II(h,m,_){if((_&4194048)!==0){var M=m.lanes;M&=h.pendingLanes,_|=M,m.lanes=_,qt(h,_)}}var ix={readContext:Ji,use:Ky,useCallback:Br,useContext:Br,useEffect:Br,useImperativeHandle:Br,useLayoutEffect:Br,useInsertionEffect:Br,useMemo:Br,useReducer:Br,useRef:Br,useState:Br,useDebugValue:Br,useDeferredValue:Br,useTransition:Br,useSyncExternalStore:Br,useId:Br,useHostTransitionStatus:Br,useFormState:Br,useActionState:Br,useOptimistic:Br,useMemoCache:Br,useCacheRefresh:Br};ix.useEffectEvent=Br;var FI={readContext:Ji,use:Ky,useCallback:function(h,m){return ja().memoizedState=[h,m===void 0?null:m],h},useContext:Ji,useEffect:_I,useImperativeHandle:function(h,m,_){_=_!=null?_.concat([h]):null,Yy(4194308,4,EI.bind(null,m,h),_)},useLayoutEffect:function(h,m){return Yy(4194308,4,h,m)},useInsertionEffect:function(h,m){Yy(4,2,h,m)},useMemo:function(h,m){var _=ja();m=m===void 0?null:m;var M=h();if(sh){Ke(!0);try{h()}finally{Ke(!1)}}return _.memoizedState=[M,m],M},useReducer:function(h,m,_){var M=ja();if(_!==void 0){var j=_(m);if(sh){Ke(!0);try{_(m)}finally{Ke(!1)}}}else j=m;return M.memoizedState=M.baseState=j,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:h,lastRenderedState:j},M.queue=h,h=h.dispatch=yre.bind(null,un,h),[M.memoizedState,h]},useRef:function(h){var m=ja();return h={current:h},m.memoizedState=h},useState:function(h){h=FE(h);var m=h.queue,_=OI.bind(null,un,m);return m.dispatch=_,[h.memoizedState,_]},useDebugValue:BE,useDeferredValue:function(h,m){var _=ja();return HE(_,h,m)},useTransition:function(){var h=FE(!1);return h=kI.bind(null,un,h.queue,!0,!1),ja().memoizedState=h,[!1,h]},useSyncExternalStore:function(h,m,_){var M=un,j=ja();if(Dn){if(_===void 0)throw Error(r(407));_=_()}else{if(_=m(),fr===null)throw Error(r(349));(jn&127)!==0||aI(M,m,_)}j.memoizedState=_;var I={value:_,getSnapshot:m};return j.queue=I,_I(oI.bind(null,M,I,h),[h]),M.flags|=2048,tm(9,{destroy:void 0},sI.bind(null,M,I,_,m),null),_},useId:function(){var h=ja(),m=fr.identifierPrefix;if(Dn){var _=rl,M=nl;_=(M&~(1<<32-Xe(M)-1)).toString(32)+_,m="_"+m+"R_"+_,_=Wy++,0<_&&(m+="H"+_.toString(32)),m+="_"}else _=hre++,m="_"+m+"r_"+_.toString(32)+"_";return h.memoizedState=m},useHostTransitionStatus:VE,useFormState:gI,useActionState:gI,useOptimistic:function(h){var m=ja();m.memoizedState=m.baseState=h;var _={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return m.queue=_,m=GE.bind(null,un,!0,_),_.dispatch=m,[h,m]},useMemoCache:OE,useCacheRefresh:function(){return ja().memoizedState=bre.bind(null,un)},useEffectEvent:function(h){var m=ja(),_={impl:h};return m.memoizedState=_,function(){if((Bn&2)!==0)throw Error(r(440));return _.impl.apply(void 0,arguments)}}},WE={readContext:Ji,use:Ky,useCallback:AI,useContext:Ji,useEffect:zE,useImperativeHandle:NI,useInsertionEffect:SI,useLayoutEffect:MI,useMemo:TI,useReducer:Xy,useRef:vI,useState:function(){return Xy(Xl)},useDebugValue:BE,useDeferredValue:function(h,m){var _=Qr();return CI(_,nr.memoizedState,h,m)},useTransition:function(){var h=Xy(Xl)[0],m=Qr().memoizedState;return[typeof h=="boolean"?h:nx(h),m]},useSyncExternalStore:iI,useId:RI,useHostTransitionStatus:VE,useFormState:xI,useActionState:xI,useOptimistic:function(h,m){var _=Qr();return uI(_,nr,h,m)},useMemoCache:OE,useCacheRefresh:DI};WE.useEffectEvent=wI;var UI={readContext:Ji,use:Ky,useCallback:AI,useContext:Ji,useEffect:zE,useImperativeHandle:NI,useInsertionEffect:SI,useLayoutEffect:MI,useMemo:TI,useReducer:IE,useRef:vI,useState:function(){return IE(Xl)},useDebugValue:BE,useDeferredValue:function(h,m){var _=Qr();return nr===null?HE(_,h,m):CI(_,nr.memoizedState,h,m)},useTransition:function(){var h=IE(Xl)[0],m=Qr().memoizedState;return[typeof h=="boolean"?h:nx(h),m]},useSyncExternalStore:iI,useId:RI,useHostTransitionStatus:VE,useFormState:yI,useActionState:yI,useOptimistic:function(h,m){var _=Qr();return nr!==null?uI(_,nr,h,m):(_.baseState=h,[h,_.queue.dispatch])},useMemoCache:OE,useCacheRefresh:DI};UI.useEffectEvent=wI;function qE(h,m,_,M){m=h.memoizedState,_=_(M,m),_=_==null?m:f({},m,_),h.memoizedState=_,h.lanes===0&&(h.updateQueue.baseState=_)}var KE={enqueueSetState:function(h,m,_){h=h._reactInternals;var M=ws(),j=mu(M);j.payload=m,_!=null&&(j.callback=_),m=pu(h,j,M),m!==null&&(Za(m,h,M),Qg(m,h,M))},enqueueReplaceState:function(h,m,_){h=h._reactInternals;var M=ws(),j=mu(M);j.tag=1,j.payload=m,_!=null&&(j.callback=_),m=pu(h,j,M),m!==null&&(Za(m,h,M),Qg(m,h,M))},enqueueForceUpdate:function(h,m){h=h._reactInternals;var _=ws(),M=mu(_);M.tag=2,m!=null&&(M.callback=m),m=pu(h,M,_),m!==null&&(Za(m,h,_),Qg(m,h,_))}};function zI(h,m,_,M,j,I,J){return h=h.stateNode,typeof h.shouldComponentUpdate=="function"?h.shouldComponentUpdate(M,I,J):m.prototype&&m.prototype.isPureReactComponent?!Vg(_,M)||!Vg(j,I):!0}function BI(h,m,_,M){h=m.state,typeof m.componentWillReceiveProps=="function"&&m.componentWillReceiveProps(_,M),typeof m.UNSAFE_componentWillReceiveProps=="function"&&m.UNSAFE_componentWillReceiveProps(_,M),m.state!==h&&KE.enqueueReplaceState(m,m.state,null)}function oh(h,m){var _=m;if("ref"in m){_={};for(var M in m)M!=="ref"&&(_[M]=m[M])}if(h=h.defaultProps){_===m&&(_=f({},_));for(var j in h)_[j]===void 0&&(_[j]=h[j])}return _}function HI(h){ky(h)}function $I(h){console.error(h)}function VI(h){ky(h)}function Jy(h,m){try{var _=h.onUncaughtError;_(m.value,{componentStack:m.stack})}catch(M){setTimeout(function(){throw M})}}function GI(h,m,_){try{var M=h.onCaughtError;M(_.value,{componentStack:_.stack,errorBoundary:m.tag===1?m.stateNode:null})}catch(j){setTimeout(function(){throw j})}}function XE(h,m,_){return _=mu(_),_.tag=3,_.payload={element:null},_.callback=function(){Jy(h,m)},_}function WI(h){return h=mu(h),h.tag=3,h}function qI(h,m,_,M){var j=_.type.getDerivedStateFromError;if(typeof j=="function"){var I=M.value;h.payload=function(){return j(I)},h.callback=function(){GI(m,_,M)}}var J=_.stateNode;J!==null&&typeof J.componentDidCatch=="function"&&(h.callback=function(){GI(m,_,M),typeof j!="function"&&(_u===null?_u=new Set([this]):_u.add(this));var de=M.stack;this.componentDidCatch(M.value,{componentStack:de!==null?de:""})})}function vre(h,m,_,M,j){if(_.flags|=32768,M!==null&&typeof M=="object"&&typeof M.then=="function"){if(m=_.alternate,m!==null&&qf(m,_,j,!0),_=bs.current,_!==null){switch(_.tag){case 31:case 13:return Ws===null?dv():_.alternate===null&&Hr===0&&(Hr=3),_.flags&=-257,_.flags|=65536,_.lanes=j,M===zy?_.flags|=16384:(m=_.updateQueue,m===null?_.updateQueue=new Set([M]):m.add(M),vN(h,M,j)),!1;case 22:return _.flags|=65536,M===zy?_.flags|=16384:(m=_.updateQueue,m===null?(m={transitions:null,markerInstances:null,retryQueue:new Set([M])},_.updateQueue=m):(_=m.retryQueue,_===null?m.retryQueue=new Set([M]):_.add(M)),vN(h,M,j)),!1}throw Error(r(435,_.tag))}return vN(h,M,j),dv(),!1}if(Dn)return m=bs.current,m!==null?((m.flags&65536)===0&&(m.flags|=256),m.flags|=65536,m.lanes=j,M!==mE&&(h=Error(r(422),{cause:M}),qg(Hs(h,_)))):(M!==mE&&(m=Error(r(423),{cause:M}),qg(Hs(m,_))),h=h.current.alternate,h.flags|=65536,j&=-j,h.lanes|=j,M=Hs(M,_),j=XE(h.stateNode,M,j),EE(h,j),Hr!==4&&(Hr=2)),!1;var I=Error(r(520),{cause:M});if(I=Hs(I,_),hx===null?hx=[I]:hx.push(I),Hr!==4&&(Hr=2),m===null)return!0;M=Hs(M,_),_=m;do{switch(_.tag){case 3:return _.flags|=65536,h=j&-j,_.lanes|=h,h=XE(_.stateNode,M,h),EE(_,h),!1;case 1:if(m=_.type,I=_.stateNode,(_.flags&128)===0&&(typeof m.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(_u===null||!_u.has(I))))return _.flags|=65536,j&=-j,_.lanes|=j,j=WI(j),qI(j,h,_,M),EE(_,j),!1}_=_.return}while(_!==null);return!1}var YE=Error(r(461)),oi=!1;function ea(h,m,_,M){m.child=h===null?ZL(m,null,_,M):ah(m,h.child,_,M)}function KI(h,m,_,M,j){_=_.render;var I=m.ref;if("ref"in M){var J={};for(var de in M)de!=="ref"&&(J[de]=M[de])}else J=M;return th(m),M=jE(h,m,_,J,I,j),de=PE(),h!==null&&!oi?(RE(h,m,j),Yl(h,m,j)):(Dn&&de&&hE(m),m.flags|=1,ea(h,m,M,j),m.child)}function XI(h,m,_,M,j){if(h===null){var I=_.type;return typeof I=="function"&&!cE(I)&&I.defaultProps===void 0&&_.compare===null?(m.tag=15,m.type=I,YI(h,m,I,M,j)):(h=Dy(_.type,null,M,m,m.mode,j),h.ref=m.ref,h.return=m,m.child=h)}if(I=h.child,!iN(h,j)){var J=I.memoizedProps;if(_=_.compare,_=_!==null?_:Vg,_(J,M)&&h.ref===m.ref)return Yl(h,m,j)}return m.flags|=1,h=Vl(I,M),h.ref=m.ref,h.return=m,m.child=h}function YI(h,m,_,M,j){if(h!==null){var I=h.memoizedProps;if(Vg(I,M)&&h.ref===m.ref)if(oi=!1,m.pendingProps=M=I,iN(h,j))(h.flags&131072)!==0&&(oi=!0);else return m.lanes=h.lanes,Yl(h,m,j)}return ZE(h,m,_,M,j)}function ZI(h,m,_,M){var j=M.children,I=h!==null?h.memoizedState:null;if(h===null&&m.stateNode===null&&(m.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),M.mode==="hidden"){if((m.flags&128)!==0){if(I=I!==null?I.baseLanes|_:_,h!==null){for(M=m.child=h.child,j=0;M!==null;)j=j|M.lanes|M.childLanes,M=M.sibling;M=j&~I}else M=0,m.child=null;return QI(h,m,I,_,M)}if((_&536870912)!==0)m.memoizedState={baseLanes:0,cachePool:null},h!==null&&Fy(m,I!==null?I.cachePool:null),I!==null?eI(m,I):AE(),tI(m);else return M=m.lanes=536870912,QI(h,m,I!==null?I.baseLanes|_:_,_,M)}else I!==null?(Fy(m,I.cachePool),eI(m,I),xu(),m.memoizedState=null):(h!==null&&Fy(m,null),AE(),xu());return ea(h,m,j,_),m.child}function ax(h,m){return h!==null&&h.tag===22||m.stateNode!==null||(m.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.sibling}function QI(h,m,_,M,j){var I=_E();return I=I===null?null:{parent:ai._currentValue,pool:I},m.memoizedState={baseLanes:_,cachePool:I},h!==null&&Fy(m,null),AE(),tI(m),h!==null&&qf(h,m,M,!0),m.childLanes=j,null}function ev(h,m){return m=nv({mode:m.mode,children:m.children},h.mode),m.ref=h.ref,h.child=m,m.return=h,m}function JI(h,m,_){return ah(m,h.child,null,_),h=ev(m,m.pendingProps),h.flags|=2,ys(m),m.memoizedState=null,h}function _re(h,m,_){var M=m.pendingProps,j=(m.flags&128)!==0;if(m.flags&=-129,h===null){if(Dn){if(M.mode==="hidden")return h=ev(m,M),m.lanes=536870912,ax(null,h);if(CE(m),(h=_r)?(h=dF(h,Gs),h=h!==null&&h.data==="&"?h:null,h!==null&&(m.memoizedState={dehydrated:h,treeContext:cu!==null?{id:nl,overflow:rl}:null,retryLane:536870912,hydrationErrors:null},_=LL(h),_.return=m,m.child=_,Qi=m,_r=null)):h=null,h===null)throw du(m);return m.lanes=536870912,null}return ev(m,M)}var I=h.memoizedState;if(I!==null){var J=I.dehydrated;if(CE(m),j)if(m.flags&256)m.flags&=-257,m=JI(h,m,_);else if(m.memoizedState!==null)m.child=h.child,m.flags|=128,m=null;else throw Error(r(558));else if(oi||qf(h,m,_,!1),j=(_&h.childLanes)!==0,oi||j){if(M=fr,M!==null&&(J=er(M,_),J!==0&&J!==I.retryLane))throw I.retryLane=J,Zd(h,J),Za(M,h,J),YE;dv(),m=JI(h,m,_)}else h=I.treeContext,_r=qs(J.nextSibling),Qi=m,Dn=!0,uu=null,Gs=!1,h!==null&&UL(m,h),m=ev(m,M),m.flags|=4096;return m}return h=Vl(h.child,{mode:M.mode,children:M.children}),h.ref=m.ref,m.child=h,h.return=m,h}function tv(h,m){var _=m.ref;if(_===null)h!==null&&h.ref!==null&&(m.flags|=4194816);else{if(typeof _!="function"&&typeof _!="object")throw Error(r(284));(h===null||h.ref!==_)&&(m.flags|=4194816)}}function ZE(h,m,_,M,j){return th(m),_=jE(h,m,_,M,void 0,j),M=PE(),h!==null&&!oi?(RE(h,m,j),Yl(h,m,j)):(Dn&&M&&hE(m),m.flags|=1,ea(h,m,_,j),m.child)}function e5(h,m,_,M,j,I){return th(m),m.updateQueue=null,_=rI(m,M,_,j),nI(h),M=PE(),h!==null&&!oi?(RE(h,m,I),Yl(h,m,I)):(Dn&&M&&hE(m),m.flags|=1,ea(h,m,_,I),m.child)}function t5(h,m,_,M,j){if(th(m),m.stateNode===null){var I=$f,J=_.contextType;typeof J=="object"&&J!==null&&(I=Ji(J)),I=new _(M,I),m.memoizedState=I.state!==null&&I.state!==void 0?I.state:null,I.updater=KE,m.stateNode=I,I._reactInternals=m,I=m.stateNode,I.props=M,I.state=m.memoizedState,I.refs={},SE(m),J=_.contextType,I.context=typeof J=="object"&&J!==null?Ji(J):$f,I.state=m.memoizedState,J=_.getDerivedStateFromProps,typeof J=="function"&&(qE(m,_,J,M),I.state=m.memoizedState),typeof _.getDerivedStateFromProps=="function"||typeof I.getSnapshotBeforeUpdate=="function"||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(J=I.state,typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount(),J!==I.state&&KE.enqueueReplaceState(I,I.state,null),ex(m,M,I,j),Jg(),I.state=m.memoizedState),typeof I.componentDidMount=="function"&&(m.flags|=4194308),M=!0}else if(h===null){I=m.stateNode;var de=m.memoizedProps,ke=oh(_,de);I.props=ke;var tt=I.context,ct=_.contextType;J=$f,typeof ct=="object"&&ct!==null&&(J=Ji(ct));var pt=_.getDerivedStateFromProps;ct=typeof pt=="function"||typeof I.getSnapshotBeforeUpdate=="function",de=m.pendingProps!==de,ct||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(de||tt!==J)&&BI(m,I,M,J),fu=!1;var it=m.memoizedState;I.state=it,ex(m,M,I,j),Jg(),tt=m.memoizedState,de||it!==tt||fu?(typeof pt=="function"&&(qE(m,_,pt,M),tt=m.memoizedState),(ke=fu||zI(m,_,ke,M,it,tt,J))?(ct||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount()),typeof I.componentDidMount=="function"&&(m.flags|=4194308)):(typeof I.componentDidMount=="function"&&(m.flags|=4194308),m.memoizedProps=M,m.memoizedState=tt),I.props=M,I.state=tt,I.context=J,M=ke):(typeof I.componentDidMount=="function"&&(m.flags|=4194308),M=!1)}else{I=m.stateNode,ME(h,m),J=m.memoizedProps,ct=oh(_,J),I.props=ct,pt=m.pendingProps,it=I.context,tt=_.contextType,ke=$f,typeof tt=="object"&&tt!==null&&(ke=Ji(tt)),de=_.getDerivedStateFromProps,(tt=typeof de=="function"||typeof I.getSnapshotBeforeUpdate=="function")||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(J!==pt||it!==ke)&&BI(m,I,M,ke),fu=!1,it=m.memoizedState,I.state=it,ex(m,M,I,j),Jg();var ot=m.memoizedState;J!==pt||it!==ot||fu||h!==null&&h.dependencies!==null&&Ly(h.dependencies)?(typeof de=="function"&&(qE(m,_,de,M),ot=m.memoizedState),(ct=fu||zI(m,_,ct,M,it,ot,ke)||h!==null&&h.dependencies!==null&&Ly(h.dependencies))?(tt||typeof I.UNSAFE_componentWillUpdate!="function"&&typeof I.componentWillUpdate!="function"||(typeof I.componentWillUpdate=="function"&&I.componentWillUpdate(M,ot,ke),typeof I.UNSAFE_componentWillUpdate=="function"&&I.UNSAFE_componentWillUpdate(M,ot,ke)),typeof I.componentDidUpdate=="function"&&(m.flags|=4),typeof I.getSnapshotBeforeUpdate=="function"&&(m.flags|=1024)):(typeof I.componentDidUpdate!="function"||J===h.memoizedProps&&it===h.memoizedState||(m.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||J===h.memoizedProps&&it===h.memoizedState||(m.flags|=1024),m.memoizedProps=M,m.memoizedState=ot),I.props=M,I.state=ot,I.context=ke,M=ct):(typeof I.componentDidUpdate!="function"||J===h.memoizedProps&&it===h.memoizedState||(m.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||J===h.memoizedProps&&it===h.memoizedState||(m.flags|=1024),M=!1)}return I=M,tv(h,m),M=(m.flags&128)!==0,I||M?(I=m.stateNode,_=M&&typeof _.getDerivedStateFromError!="function"?null:I.render(),m.flags|=1,h!==null&&M?(m.child=ah(m,h.child,null,j),m.child=ah(m,null,_,j)):ea(h,m,_,j),m.memoizedState=I.state,h=m.child):h=Yl(h,m,j),h}function n5(h,m,_,M){return Jd(),m.flags|=256,ea(h,m,_,M),m.child}var QE={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function JE(h){return{baseLanes:h,cachePool:GL()}}function eN(h,m,_){return h=h!==null?h.childLanes&~_:0,m&&(h|=_s),h}function r5(h,m,_){var M=m.pendingProps,j=!1,I=(m.flags&128)!==0,J;if((J=I)||(J=h!==null&&h.memoizedState===null?!1:(Zr.current&2)!==0),J&&(j=!0,m.flags&=-129),J=(m.flags&32)!==0,m.flags&=-33,h===null){if(Dn){if(j?gu(m):xu(),(h=_r)?(h=dF(h,Gs),h=h!==null&&h.data!=="&"?h:null,h!==null&&(m.memoizedState={dehydrated:h,treeContext:cu!==null?{id:nl,overflow:rl}:null,retryLane:536870912,hydrationErrors:null},_=LL(h),_.return=m,m.child=_,Qi=m,_r=null)):h=null,h===null)throw du(m);return LN(h)?m.lanes=32:m.lanes=536870912,null}var de=M.children;return M=M.fallback,j?(xu(),j=m.mode,de=nv({mode:"hidden",children:de},j),M=Qd(M,j,_,null),de.return=m,M.return=m,de.sibling=M,m.child=de,M=m.child,M.memoizedState=JE(_),M.childLanes=eN(h,J,_),m.memoizedState=QE,ax(null,M)):(gu(m),tN(m,de))}var ke=h.memoizedState;if(ke!==null&&(de=ke.dehydrated,de!==null)){if(I)m.flags&256?(gu(m),m.flags&=-257,m=nN(h,m,_)):m.memoizedState!==null?(xu(),m.child=h.child,m.flags|=128,m=null):(xu(),de=M.fallback,j=m.mode,M=nv({mode:"visible",children:M.children},j),de=Qd(de,j,_,null),de.flags|=2,M.return=m,de.return=m,M.sibling=de,m.child=M,ah(m,h.child,null,_),M=m.child,M.memoizedState=JE(_),M.childLanes=eN(h,J,_),m.memoizedState=QE,m=ax(null,M));else if(gu(m),LN(de)){if(J=de.nextSibling&&de.nextSibling.dataset,J)var tt=J.dgst;J=tt,M=Error(r(419)),M.stack="",M.digest=J,qg({value:M,source:null,stack:null}),m=nN(h,m,_)}else if(oi||qf(h,m,_,!1),J=(_&h.childLanes)!==0,oi||J){if(J=fr,J!==null&&(M=er(J,_),M!==0&&M!==ke.retryLane))throw ke.retryLane=M,Zd(h,M),Za(J,h,M),YE;ON(de)||dv(),m=nN(h,m,_)}else ON(de)?(m.flags|=192,m.child=h.child,m=null):(h=ke.treeContext,_r=qs(de.nextSibling),Qi=m,Dn=!0,uu=null,Gs=!1,h!==null&&UL(m,h),m=tN(m,M.children),m.flags|=4096);return m}return j?(xu(),de=M.fallback,j=m.mode,ke=h.child,tt=ke.sibling,M=Vl(ke,{mode:"hidden",children:M.children}),M.subtreeFlags=ke.subtreeFlags&65011712,tt!==null?de=Vl(tt,de):(de=Qd(de,j,_,null),de.flags|=2),de.return=m,M.return=m,M.sibling=de,m.child=M,ax(null,M),M=m.child,de=h.child.memoizedState,de===null?de=JE(_):(j=de.cachePool,j!==null?(ke=ai._currentValue,j=j.parent!==ke?{parent:ke,pool:ke}:j):j=GL(),de={baseLanes:de.baseLanes|_,cachePool:j}),M.memoizedState=de,M.childLanes=eN(h,J,_),m.memoizedState=QE,ax(h.child,M)):(gu(m),_=h.child,h=_.sibling,_=Vl(_,{mode:"visible",children:M.children}),_.return=m,_.sibling=null,h!==null&&(J=m.deletions,J===null?(m.deletions=[h],m.flags|=16):J.push(h)),m.child=_,m.memoizedState=null,_)}function tN(h,m){return m=nv({mode:"visible",children:m},h.mode),m.return=h,h.child=m}function nv(h,m){return h=xs(22,h,null,m),h.lanes=0,h}function nN(h,m,_){return ah(m,h.child,null,_),h=tN(m,m.pendingProps.children),h.flags|=2,m.memoizedState=null,h}function i5(h,m,_){h.lanes|=m;var M=h.alternate;M!==null&&(M.lanes|=m),xE(h.return,m,_)}function rN(h,m,_,M,j,I){var J=h.memoizedState;J===null?h.memoizedState={isBackwards:m,rendering:null,renderingStartTime:0,last:M,tail:_,tailMode:j,treeForkCount:I}:(J.isBackwards=m,J.rendering=null,J.renderingStartTime=0,J.last=M,J.tail=_,J.tailMode=j,J.treeForkCount=I)}function a5(h,m,_){var M=m.pendingProps,j=M.revealOrder,I=M.tail;M=M.children;var J=Zr.current,de=(J&2)!==0;if(de?(J=J&1|2,m.flags|=128):J&=1,ee(Zr,J),ea(h,m,M,_),M=Dn?Wg:0,!de&&h!==null&&(h.flags&128)!==0)e:for(h=m.child;h!==null;){if(h.tag===13)h.memoizedState!==null&&i5(h,_,m);else if(h.tag===19)i5(h,_,m);else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===m)break e;for(;h.sibling===null;){if(h.return===null||h.return===m)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}switch(j){case"forwards":for(_=m.child,j=null;_!==null;)h=_.alternate,h!==null&&Vy(h)===null&&(j=_),_=_.sibling;_=j,_===null?(j=m.child,m.child=null):(j=_.sibling,_.sibling=null),rN(m,!1,j,_,I,M);break;case"backwards":case"unstable_legacy-backwards":for(_=null,j=m.child,m.child=null;j!==null;){if(h=j.alternate,h!==null&&Vy(h)===null){m.child=j;break}h=j.sibling,j.sibling=_,_=j,j=h}rN(m,!0,_,null,I,M);break;case"together":rN(m,!1,null,null,void 0,M);break;default:m.memoizedState=null}return m.child}function Yl(h,m,_){if(h!==null&&(m.dependencies=h.dependencies),vu|=m.lanes,(_&m.childLanes)===0)if(h!==null){if(qf(h,m,_,!1),(_&m.childLanes)===0)return null}else return null;if(h!==null&&m.child!==h.child)throw Error(r(153));if(m.child!==null){for(h=m.child,_=Vl(h,h.pendingProps),m.child=_,_.return=m;h.sibling!==null;)h=h.sibling,_=_.sibling=Vl(h,h.pendingProps),_.return=m;_.sibling=null}return m.child}function iN(h,m){return(h.lanes&m)!==0?!0:(h=h.dependencies,!!(h!==null&&Ly(h)))}function wre(h,m,_){switch(m.tag){case 3:ue(m,m.stateNode.containerInfo),hu(m,ai,h.memoizedState.cache),Jd();break;case 27:case 5:Ee(m);break;case 4:ue(m,m.stateNode.containerInfo);break;case 10:hu(m,m.type,m.memoizedProps.value);break;case 31:if(m.memoizedState!==null)return m.flags|=128,CE(m),null;break;case 13:var M=m.memoizedState;if(M!==null)return M.dehydrated!==null?(gu(m),m.flags|=128,null):(_&m.child.childLanes)!==0?r5(h,m,_):(gu(m),h=Yl(h,m,_),h!==null?h.sibling:null);gu(m);break;case 19:var j=(h.flags&128)!==0;if(M=(_&m.childLanes)!==0,M||(qf(h,m,_,!1),M=(_&m.childLanes)!==0),j){if(M)return a5(h,m,_);m.flags|=128}if(j=m.memoizedState,j!==null&&(j.rendering=null,j.tail=null,j.lastEffect=null),ee(Zr,Zr.current),M)break;return null;case 22:return m.lanes=0,ZI(h,m,_,m.pendingProps);case 24:hu(m,ai,h.memoizedState.cache)}return Yl(h,m,_)}function s5(h,m,_){if(h!==null)if(h.memoizedProps!==m.pendingProps)oi=!0;else{if(!iN(h,_)&&(m.flags&128)===0)return oi=!1,wre(h,m,_);oi=(h.flags&131072)!==0}else oi=!1,Dn&&(m.flags&1048576)!==0&&FL(m,Wg,m.index);switch(m.lanes=0,m.tag){case 16:e:{var M=m.pendingProps;if(h=rh(m.elementType),m.type=h,typeof h=="function")cE(h)?(M=oh(h,M),m.tag=1,m=t5(null,m,h,M,_)):(m.tag=0,m=ZE(null,m,h,M,_));else{if(h!=null){var j=h.$$typeof;if(j===A){m.tag=11,m=KI(null,m,h,M,_);break e}else if(j===T){m.tag=14,m=XI(null,m,h,M,_);break e}}throw m=R(h)||h,Error(r(306,m,""))}}return m;case 0:return ZE(h,m,m.type,m.pendingProps,_);case 1:return M=m.type,j=oh(M,m.pendingProps),t5(h,m,M,j,_);case 3:e:{if(ue(m,m.stateNode.containerInfo),h===null)throw Error(r(387));M=m.pendingProps;var I=m.memoizedState;j=I.element,ME(h,m),ex(m,M,null,_);var J=m.memoizedState;if(M=J.cache,hu(m,ai,M),M!==I.cache&&bE(m,[ai],_,!0),Jg(),M=J.element,I.isDehydrated)if(I={element:M,isDehydrated:!1,cache:J.cache},m.updateQueue.baseState=I,m.memoizedState=I,m.flags&256){m=n5(h,m,M,_);break e}else if(M!==j){j=Hs(Error(r(424)),m),qg(j),m=n5(h,m,M,_);break e}else{switch(h=m.stateNode.containerInfo,h.nodeType){case 9:h=h.body;break;default:h=h.nodeName==="HTML"?h.ownerDocument.body:h}for(_r=qs(h.firstChild),Qi=m,Dn=!0,uu=null,Gs=!0,_=ZL(m,null,M,_),m.child=_;_;)_.flags=_.flags&-3|4096,_=_.sibling}else{if(Jd(),M===j){m=Yl(h,m,_);break e}ea(h,m,M,_)}m=m.child}return m;case 26:return tv(h,m),h===null?(_=xF(m.type,null,m.pendingProps,null))?m.memoizedState=_:Dn||(_=m.type,h=m.pendingProps,M=bv(ce.current).createElement(_),M[Bt]=m,M[ln]=h,ta(M,_,h),De(M),m.stateNode=M):m.memoizedState=xF(m.type,h.memoizedProps,m.pendingProps,h.memoizedState),null;case 27:return Ee(m),h===null&&Dn&&(M=m.stateNode=mF(m.type,m.pendingProps,ce.current),Qi=m,Gs=!0,j=_r,Eu(m.type)?(IN=j,_r=qs(M.firstChild)):_r=j),ea(h,m,m.pendingProps.children,_),tv(h,m),h===null&&(m.flags|=4194304),m.child;case 5:return h===null&&Dn&&((j=M=_r)&&(M=Qre(M,m.type,m.pendingProps,Gs),M!==null?(m.stateNode=M,Qi=m,_r=qs(M.firstChild),Gs=!1,j=!0):j=!1),j||du(m)),Ee(m),j=m.type,I=m.pendingProps,J=h!==null?h.memoizedProps:null,M=I.children,PN(j,I)?M=null:J!==null&&PN(j,J)&&(m.flags|=32),m.memoizedState!==null&&(j=jE(h,m,fre,null,null,_),vx._currentValue=j),tv(h,m),ea(h,m,M,_),m.child;case 6:return h===null&&Dn&&((h=_=_r)&&(_=Jre(_,m.pendingProps,Gs),_!==null?(m.stateNode=_,Qi=m,_r=null,h=!0):h=!1),h||du(m)),null;case 13:return r5(h,m,_);case 4:return ue(m,m.stateNode.containerInfo),M=m.pendingProps,h===null?m.child=ah(m,null,M,_):ea(h,m,M,_),m.child;case 11:return KI(h,m,m.type,m.pendingProps,_);case 7:return ea(h,m,m.pendingProps,_),m.child;case 8:return ea(h,m,m.pendingProps.children,_),m.child;case 12:return ea(h,m,m.pendingProps.children,_),m.child;case 10:return M=m.pendingProps,hu(m,m.type,M.value),ea(h,m,M.children,_),m.child;case 9:return j=m.type._context,M=m.pendingProps.children,th(m),j=Ji(j),M=M(j),m.flags|=1,ea(h,m,M,_),m.child;case 14:return XI(h,m,m.type,m.pendingProps,_);case 15:return YI(h,m,m.type,m.pendingProps,_);case 19:return a5(h,m,_);case 31:return _re(h,m,_);case 22:return ZI(h,m,_,m.pendingProps);case 24:return th(m),M=Ji(ai),h===null?(j=_E(),j===null&&(j=fr,I=yE(),j.pooledCache=I,I.refCount++,I!==null&&(j.pooledCacheLanes|=_),j=I),m.memoizedState={parent:M,cache:j},SE(m),hu(m,ai,j)):((h.lanes&_)!==0&&(ME(h,m),ex(m,null,null,_),Jg()),j=h.memoizedState,I=m.memoizedState,j.parent!==M?(j={parent:M,cache:M},m.memoizedState=j,m.lanes===0&&(m.memoizedState=m.updateQueue.baseState=j),hu(m,ai,M)):(M=I.cache,hu(m,ai,M),M!==j.cache&&bE(m,[ai],_,!0))),ea(h,m,m.pendingProps.children,_),m.child;case 29:throw m.pendingProps}throw Error(r(156,m.tag))}function Zl(h){h.flags|=4}function aN(h,m,_,M,j){if((m=(h.mode&32)!==0)&&(m=!1),m){if(h.flags|=16777216,(j&335544128)===j)if(h.stateNode.complete)h.flags|=8192;else if(R5())h.flags|=8192;else throw ih=zy,wE}else h.flags&=-16777217}function o5(h,m){if(m.type!=="stylesheet"||(m.state.loading&4)!==0)h.flags&=-16777217;else if(h.flags|=16777216,!wF(m))if(R5())h.flags|=8192;else throw ih=zy,wE}function rv(h,m){m!==null&&(h.flags|=4),h.flags&16384&&(m=h.tag!==22?Nt():536870912,h.lanes|=m,am|=m)}function sx(h,m){if(!Dn)switch(h.tailMode){case"hidden":m=h.tail;for(var _=null;m!==null;)m.alternate!==null&&(_=m),m=m.sibling;_===null?h.tail=null:_.sibling=null;break;case"collapsed":_=h.tail;for(var M=null;_!==null;)_.alternate!==null&&(M=_),_=_.sibling;M===null?m||h.tail===null?h.tail=null:h.tail.sibling=null:M.sibling=null}}function wr(h){var m=h.alternate!==null&&h.alternate.child===h.child,_=0,M=0;if(m)for(var j=h.child;j!==null;)_|=j.lanes|j.childLanes,M|=j.subtreeFlags&65011712,M|=j.flags&65011712,j.return=h,j=j.sibling;else for(j=h.child;j!==null;)_|=j.lanes|j.childLanes,M|=j.subtreeFlags,M|=j.flags,j.return=h,j=j.sibling;return h.subtreeFlags|=M,h.childLanes=_,m}function Sre(h,m,_){var M=m.pendingProps;switch(fE(m),m.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wr(m),null;case 1:return wr(m),null;case 3:return _=m.stateNode,M=null,h!==null&&(M=h.memoizedState.cache),m.memoizedState.cache!==M&&(m.flags|=2048),ql(ai),me(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(h===null||h.child===null)&&(Wf(m)?Zl(m):h===null||h.memoizedState.isDehydrated&&(m.flags&256)===0||(m.flags|=1024,pE())),wr(m),null;case 26:var j=m.type,I=m.memoizedState;return h===null?(Zl(m),I!==null?(wr(m),o5(m,I)):(wr(m),aN(m,j,null,M,_))):I?I!==h.memoizedState?(Zl(m),wr(m),o5(m,I)):(wr(m),m.flags&=-16777217):(h=h.memoizedProps,h!==M&&Zl(m),wr(m),aN(m,j,h,M,_)),null;case 27:if(be(m),_=ce.current,j=m.type,h!==null&&m.stateNode!=null)h.memoizedProps!==M&&Zl(m);else{if(!M){if(m.stateNode===null)throw Error(r(166));return wr(m),null}h=te.current,Wf(m)?zL(m):(h=mF(j,M,_),m.stateNode=h,Zl(m))}return wr(m),null;case 5:if(be(m),j=m.type,h!==null&&m.stateNode!=null)h.memoizedProps!==M&&Zl(m);else{if(!M){if(m.stateNode===null)throw Error(r(166));return wr(m),null}if(I=te.current,Wf(m))zL(m);else{var J=bv(ce.current);switch(I){case 1:I=J.createElementNS("http://www.w3.org/2000/svg",j);break;case 2:I=J.createElementNS("http://www.w3.org/1998/Math/MathML",j);break;default:switch(j){case"svg":I=J.createElementNS("http://www.w3.org/2000/svg",j);break;case"math":I=J.createElementNS("http://www.w3.org/1998/Math/MathML",j);break;case"script":I=J.createElement("div"),I.innerHTML=" +